In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['d', 5171, '6887', '6153', 'd', 'W', 'M', 'P', '6027', '2745', 'Z', 'Z', 'R', 1847, 9535, 4579], [1297, 'e', 'M', 'B', 'h', '6887', '6153', 'd', 'W', 'M', 'P', '6027', '2745', 'Z', 'S', 'V', 5451]