In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Example input: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Example output: 8297, b
Example explanation: Here, '8297, b' is the longest common subsequence in both the input lists [5797, 8817, '8297', 'b', 'U', 'b'] and [5843, 8809, '8297', 'b', 'W', 'C'].
Q: ['M', 1247, 9155, 'c', 'E', 7913, 'G', 9651, 'D', 'K', 5787, 1951, '5947', 'X', '4993', '5793', 'i', '707', 'p', 'n', 'j', 'p', 's', 'a', 'R', 'I', 'o', '5171', 'L', '8749', '5421', '2997', '9873', '7823', 'D', '5425', '7593', '2641', '8485', 'w', 'S', 5669, 8185, 6637, 'R', 3173, 3455, 'j', 2755, 6589, 4553, 'A', 'z', 2337, 'k', 7045, 6521, 'T', 6255], ['K', 'J', 'K', 1597, 'R', 8473, 4395, 8433, 'E', 7575, 'k', 5053, 'H', 'Z', 8393, '5947', 'X', '4993', '5793', 'i', '707', 'p', 'n', 'j', 'p', 's', 'a', 'R', 'I', 'o', '5171', 'L', '8749', '5421', '2997', '9873', '7823', 'D', '5425', '7593', '2641', '8485', 'I', 'M', 'D']
A:
5947, X, 4993, 5793, i, 707, p, n, j, p, s, a, R, I, o, 5171, L, 8749, 5421, 2997, 9873, 7823, D, 5425, 7593, 2641, 8485