In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['A', 'y', 'F', 't', 8985, 'R', 3339, 5539, '9419', '1983', '1651', 'j', 'b', 'Y', '3955', 'q', 'J', 'S'], ['X', 5295, 'Z', 9789, 'T', 'Z', '9419', '1983', '1651', 'j', 'b', 'Y', '3955', 'q', 'r', 3377, 'J', 537]