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: [1893, 1281, 10025, 'E', 2675, 2191, 'A', 4351, 3435, 7087, 'J', 'l', 'w', 'D', 'x', 'n', 4329, 4957, 'l', 'F', '8377', '8425', 't', '9767', 'B', '6243', '5819', '7993', '2429', '3513', 'A', '929', 'H', '7223', 'x', 'x', 'N', '6205', '3829', '8551', '6479', 'Z', '7559', '6201', '9539', 'e', 'R', 'Y', '5015', '7301', 'w', 'g', 'U', 5321, 'i', 4069, 'f', 1415, 'K', 7073, 'J', 'S', 'm', 4119, 'H', 243, 'J', 'Z', 'n'], [6147, 1863, 2545, 3545, 'W', 'B', 'b', 533, '8377', '8425', 't', '9767', 'B', '6243', '5819', '7993', '2429', '3513', 'A', '929', 'H', '7223', 'x', 'x', 'N', '6205', '3829', '8551', '6479', 'Z', '7559', '6201', '9539', 'e', 'R', 'Y', '5015', '7301', 'Y', 7797]
A:
8377, 8425, t, 9767, B, 6243, 5819, 7993, 2429, 3513, A, 929, H, 7223, x, x, N, 6205, 3829, 8551, 6479, Z, 7559, 6201, 9539, e, R, Y, 5015, 7301