Q: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5407, 'k', 'p', 'P', 7235, 'S', 5775, 'C', 843, 6343, 'o', 'J', '6351', 'Y', '8383', 'e', '4315', '2597', 'n', '1207', 'A', 'q', 'S', '4223', 'J', 'A', 2735, 7085, 'd', 'K', 9101], ['G', 2117, 4233, 'z', 'v', 2645, 'H', '6351', 'Y', '8383', 'e', '4315', '2597', 'n', '1207', 'A', 'q', 'S', '4223', 'J', 'f', 6583, 8707, 'w', 'H']
A:
6351, Y, 8383, e, 4315, 2597, n, 1207, A, q, S, 4223, J