In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['r', 7149, 2175, '3399', '8691', 'P', 'D', 'Y', '5323', '6553', 'Q', 9787, 2247], ['d', 'b', 'F', 4493, 'M', 'P', '3399', '8691', 'P', 'D', 'Y', '5323', '6553', 'N', 701, 'e', 'A']