In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Y', 6837, 975, '7565', '1655', '125', '5061', 'E', '4259', '4751', '4137', '6769', 'f', 1215, 'g', 'T', 6637, 6587, 8629], [4037, 7741, 'p', 1547, 6453, 'O', 'g', '7565', '1655', '125', '5061', 'E', '4259', '4751', '4137', '6769', 'j', 'k', 'B']