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: [5053, 6391, 'O', 'J', 'O', 441, 'B', 'P', 'f', 'b', 'g', 1603, 4761, 'O', 'x', 'M', 2651, 411, 'B', 'U', 'V', '6579', '7249', 'O', '5175', '3327', '5485', 'g', 'u', '257', 'i', '4573', 'n', '6763', '7615', 'L', 'X', 'c', 't', 'j', '3539', '5397', 'b', 2035, 4533, 'i', 'M', 9607, 4297, 1263], ['Y', 5619, 9897, 6617, 4507, 5839, 'Y', 5263, 4683, 'o', 4975, 583, 3553, 'c', 5087, '6579', '7249', 'O', '5175', '3327', '5485', 'g', 'u', '257', 'i', '4573', 'n', '6763', '7615', 'L', 'X', 'c', 't', 'j', '3539', '5397', 'm', 4791, 2753, 5273, 9975]
A:
6579, 7249, O, 5175, 3327, 5485, g, u, 257, i, 4573, n, 6763, 7615, L, X, c, t, j, 3539, 5397