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: [3495, 7677, 'Q', 'V', 'e', 2459, 7331, 7867, 't', 7397, 'Q', 'G', 'O', 'E', 6289, 'E', 8091, '1037', 'h', '9515', '1347', '7', '8433', '9209', 'g', 'q', '3015', 'C', 'a', '5739', '4849', 'T', 'b', 'q', 'S', 'T', '3005', '5939', 'H', '2971', 'P', 'Z', 'W', 7085, 4505, 'L', 81], ['Z', 'G', 551, '1037', 'h', '9515', '1347', '7', '8433', '9209', 'g', 'q', '3015', 'C', 'a', '5739', '4849', 'T', 'b', 'q', 'S', 'T', '3005', '5939', 'H', '2971', 'P', 'Z', 'L', 2529, 2123, 4677, 3159, 7183, 7271, 6767]
A:
1037, h, 9515, 1347, 7, 8433, 9209, g, q, 3015, C, a, 5739, 4849, T, b, q, S, T, 3005, 5939, H, 2971, P, Z