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: ['z', 513, 2927, 'f', 'U', 'k', 'k', 'u', 9643, 'Z', 'N', 6913, 8319, 'l', 'z', 'O', 'G', 'l', '4107', 'C', 'Z', 't', 'k', 'J', 'e', 'f', '2501', '3943', 'l', '3165', 'b', 'O', '3105', '1377', 'i', 'G', 'u', '5805', 'I', 'h', '7585', 'M', 'Q', 'N', 7185, 4431, 5257, 'I', 5695, 'U', 'k', 8139, 2343, 4425, 'K', 5205, 1761, 'O', 6039, 'd', 4401, 'q', 4123, 'q', 'V', 'A', 4917, 't', 6233], [6311, 1149, 'w', 1669, 2065, 5659, 9279, 'Y', 'H', 'D', 'k', 'z', 'O', 'G', 'l', '4107', 'C', 'Z', 't', 'k', 'J', 'e', 'f', '2501', '3943', 'l', '3165', 'b', 'O', '3105', '1377', 'i', 'G', 'u', '5805', 'I', 'h', '7585', 'M', 'Q', 'y', 65, 65, 'x', 6431, 'W', 'S', 'v', 'H', 'e', 's', 7071, 'b', 8365, 8205, 4135, 6869, 'X', 'r', 9209, 6055, 'n', 'H', 'x', 6831, 'f']
A:
z, O, G, l, 4107, C, Z, t, k, J, e, f, 2501, 3943, l, 3165, b, O, 3105, 1377, i, G, u, 5805, I, h, 7585, M, Q