In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8637, 4743, 3247, 'O', 8299, 'I', 3493, 'f', 'p', 'v', '5241', 'I', '5941', '4129', 'T', '2021', 'x', '6269', '8485', 'f', 9787, 'L', 9433, 3207, 2711, 935, 'a', 'a'], ['K', 283, 465, 6803, 'U', 'k', 'g', 3163, 'g', 3731, 735, 'p', 'v', '5241', 'I', '5941', '4129', 'T', '2021', 'x', '6269', '8485', 'N', 9331, 4787, 'S', 1993, 4529, 4049, 1779, 1519, 'r']