In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 1247, 9155, 'c', 'E', 7913, 'G', 9651, 'D', 'K', 5787, 1951, '5947', 'X', '4993', '5793', 'i', '707', 'p', 'n', 'j', 'p', 's', 'a', 'R', 'I', 'o', '5171', 'L', '8749', '5421', '2997', '9873', '7823', 'D', '5425', '7593', '2641', '8485', 'w', 'S', 5669, 8185, 6637, 'R', 3173, 3455, 'j', 2755, 6589, 4553, 'A', 'z', 2337, 'k', 7045, 6521, 'T', 6255], ['K', 'J', 'K', 1597, 'R', 8473, 4395, 8433, 'E', 7575, 'k', 5053, 'H', 'Z', 8393, '5947', 'X', '4993', '5793', 'i', '707', 'p', 'n', 'j', 'p', 's', 'a', 'R', 'I', 'o', '5171', 'L', '8749', '5421', '2997', '9873', '7823', 'D', '5425', '7593', '2641', '8485', 'I', 'M', 'D']