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: [6615, 2139, 8897, 3047, 4393, 'l', '6129', '4595', 'A', '1479', '8135', '9647', 'k', 'f', '9593', 'q', '7477', 'B', '4485', '5825', 'Z', 'X', 1199, 2631, 7813, 185, 'h', 4987, 8597, 5787, 6801, 6027], ['O', 239, 3251, 'j', 'q', 7011, 'b', 3329, 'D', 4535, 'j', 'l', '6129', '4595', 'A', '1479', '8135', '9647', 'k', 'f', '9593', 'q', '7477', 'B', '4485', '5825', 'Z', 'T', 'X', 7627, 'a', 8983, 9485, 'h']
A:
l, 6129, 4595, A, 1479, 8135, 9647, k, f, 9593, q, 7477, B, 4485, 5825, Z