In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['X', 6589, '4735', 'd', 'K', 'm', 'j', 'J', 'B', 'S', '5781', 'd', 'E', '167', 'q', '7469', 'H', 'n', 5953, 181, 'f', 6475, 5639, 'A', 2217], ['f', 'C', 1677, 4889, 3261, 6301, 'u', 'y', 3027, 2029, 'R', 7445, '4735', 'd', 'K', 'm', 'j', 'J', 'B', 'S', '5781', 'd', 'E', '167', 'q', '7469', 'H', 'b', 'X', 5213, 'S', 'z', 9965]