In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['g', 577, 2857, 'n', '1327', 'S', '4327', 'd', 'O', 'M', 'l'], ['M', 1901, 'G', 'L', 'n', '1327', 'S', '4327', 'd', 'z', 'p']