In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8727, 2623, 'z', 591, 9907, 3563, 'f', 'A', 'i', '9957', 'M', '3303', '4813', '4861', '1517', 'E', 'X', 'w', '5789', 'G', 'd', '1637', '9003', 'o', 'V', 'u', 3037, 'd', 's', 7289, 9495], ['m', 'T', 1529, 'a', 'L', 'R', 'h', 'T', 1527, 3629, 'F', 387, 'Z', 1759, 'A', 'i', '9957', 'M', '3303', '4813', '4861', '1517', 'E', 'X', 'w', '5789', 'G', 'd', '1637', '9003', 'o', 'R', 'w', 8131, 'W']