In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['z', 4137, 'Y', 'X', 'J', 'z', '631', 'a', '6609', 'S', 'j', 'y', 'M', 'j', '5801', 's', 'G', 'Q', 6717, 'R', 5249, 141, 5987, 'b', 'C', 2983, 9275, 5727, 2145, 'j', 'q'], ['E', 'I', 4673, 4279, 'X', 'J', 'z', '631', 'a', '6609', 'S', 'j', 'y', 'M', 'j', '5801', 's', 'G', 'e', 1097]