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: ['S', 'u', 4421, 'u', '4171', '1191', 'J', '1403', 'g', 'a', 'Z', '3445', '393', '7169', '1061', '8433', '1835', '2405', '7465', '2993', 'u', 'G', 'l', 'M', 'E', 'a', 5777, 6165], [2101, 9621, 8805, 'P', 'f', 7783, 7041, 'F', 'X', 2907, 'i', 'N', 8831, 'F', 'r', 5613, 'j', 'c', 'u', '4171', '1191', 'J', '1403', 'g', 'a', 'Z', '3445', '393', '7169', '1061', '8433', '1835', '2405', '7465', '2993', 'u', 'G', 'l', 'M', 'O', 171, 8463, 6569, 4541, 'L', 2657, 3507, 8537, 'G', 7235, 'l', 'A', 7813, 7091, 6205]
A:
u, 4171, 1191, J, 1403, g, a, Z, 3445, 393, 7169, 1061, 8433, 1835, 2405, 7465, 2993, u, G, l, M