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

Q: [4249, 1307, 'R', '3377', '9383', 'w', '7897', 'S', '1791', 'f', '6787', 'H', 'K', 7197, 3907, 'I', 5561], [8961, 1477, 'X', 'C', 7153, 1005, 'C', '3377', '9383', 'w', '7897', 'S', '1791', 'f', '6787', 'L', 7313, 2449, 4181, 1573]

A: 3377, 9383, w, 7897, S, 1791, f, 6787
****
Q: [6137, 1795, 'J', 9247, 'r', 'w', 'E', 's', '687', 'N', '8213', '1751', '2567', '5673', 'y', '6821', '6863', '8847', 'z', 's', 'N', 'z', 'J', 7209, 'S'], [3317, 657, 3971, 8789, 4953, 9693, 'O', 7845, 'r', 'w', 'E', 's', '687', 'N', '8213', '1751', '2567', '5673', 'y', '6821', '6863', '8847', 'z', 's', 'N', 'z', 'M', 'A', 'B', 'l']

A: r, w, E, s, 687, N, 8213, 1751, 2567, 5673, y, 6821, 6863, 8847, z, s, N, z
****
Q: ['P', 3685, 'O', 419, '1513', 'b', 'R', 's', 'I', 'X', 'R'], [2375, 1747, 2621, '1513', 'b', 'R', 's', 'I', 'S', 'f', 'w', 'H']

A:
1513, b, R, s, I
****