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: [4067, 'U', 9527, '5533', 'h', '623', 't', 'H', '1369', '7531', 'y', 'S', '10013', '3825', '467', 'Z', '1863', 'k', '3419', 'U', 'd', 'X', 'X', 'C', 'E', 'w', 'E', 'I', 'N', 'w', 'N', 'f', 6509], [7431, 8039, 7711, 4675, 9739, 1155, 'f', 'C', 8813, 'H', 9551, 'z', '5533', 'h', '623', 't', 'H', '1369', '7531', 'y', 'S', '10013', '3825', '467', 'Z', '1863', 'k', '3419', 'U', 'd', 'X', 'u', 7997, 4637, 'D']
A:
5533, h, 623, t, H, 1369, 7531, y, S, 10013, 3825, 467, Z, 1863, k, 3419, U, d, X