In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
One example is below.
Q: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
A: 8297, b
Rationale: 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: [8717, 'f', 'K', 'v', 'U', 569, 1417, 1669, 'a', 625, 9525, 8155, 5357, 6269, 7783, 115, 6223, 7821, 6923, 10025, 'P', 6243, 'P', 'K', 'g', '8109', 'h', '2167', 'z', '4151', 'z', '6167', '4805', '5161', '1093', 'T', '8225', 'Y', 'h', '8701', 'V', '9059', 'P', 'l', '6619', 'e', 'b', 'K', '7949', 'X', 'Z', 'e', 'v', 'U', 'z', 271, 'e', 9839, 'Z', 4481], [1867, 1823, 6713, 3961, 'j', 'R', 5655, 1997, 1659, 5223, 'o', 2701, 'K', 8431, 729, 1473, 2555, 'N', 7205, 'H', 'L', 'L', 2235, 5171, 'o', 'Z', 'K', 'g', '8109', 'h', '2167', 'z', '4151', 'z', '6167', '4805', '5161', '1093', 'T', '8225', 'Y', 'h', '8701', 'V', '9059', 'P', 'l', '6619', 'e', 'b', 'K', '7949', 'X', 'Z', 'e', 'f', 6677, 491, 6681, 2521, 3733, 'x', 251, 2719, 'Y']
A:
K, g, 8109, h, 2167, z, 4151, z, 6167, 4805, 5161, 1093, T, 8225, Y, h, 8701, V, 9059, P, l, 6619, e, b, K, 7949, X, Z, e