In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['X', 131, 'Y', 2673, 's', '5739', 'F', 'y', '1331', '2045', 'C', 5287, 'X'], [7047, 7529, '5739', 'F', 'y', '1331', '2045', 'T', 2395, 5647]