In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8029, 6437, 'R', 'c', '4781', 'z', '9709', '6393', '2351', '2501', 'i', 'I', 'K', 'X', 'P', '1345', '421', 'a', 'g', 'R', 9853, 8145, 1729, 'z', 1687, 'F', 1111, 5657, 'D', 9367, 'n'], ['M', 5207, 723, 9705, 'a', 5575, 5831, 'g', 'b', 1253, 'M', 'U', 'i', 'P', 'v', 3187, 'R', 'c', '4781', 'z', '9709', '6393', '2351', '2501', 'i', 'I', 'K', 'X', 'P', '1345', '421', 'a', 'V', 'i', 'j', 6015, 7145, 7199, 6941, 10021, 1687, 'x']