In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['o', 1303, 8357, 'e', 97, '8887', 'J', '5067', 'B', '9465', '1339', '7575', '5417', 'C', '4507', 'C', 'x', 'a', 7139, 5161, 3429, 'p'], [2651, 2133, 'r', 9745, 825, 2065, 'j', 29, 'W', 'M', 'a', '8887', 'J', '5067', 'B', '9465', '1339', '7575', '5417', 'C', '4507', 'C', 'R', 7425, 6383, 333, 9419, 'N']
A:
8887, J, 5067, B, 9465, 1339, 7575, 5417, C, 4507, C