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: [135, 5099, 'n', 2979, 'B', 'E', 7865, 'P', 'd', 'R', 'I', '2857', 'n', 'C', 'c', 'V', 'b', 'O', 'n', '7823', '7549', 'H', '9059', 's', '8077', '2247', '701', 'a', 'Y', '9635', 'E', '863', '4271', 'u', 'l', '65', '8045', 'H', 9737, 'm'], ['M', 'U', 4619, 3625, 4485, 'A', 9585, 6437, 1617, 9427, 4169, 2061, 'M', 4233, 3689, 5805, 'U', 4083, 'G', 7905, 'p', 6267, 3447, 5385, 'R', 'I', '2857', 'n', 'C', 'c', 'V', 'b', 'O', 'n', '7823', '7549', 'H', '9059', 's', '8077', '2247', '701', 'a', 'Y', '9635', 'E', '863', '4271', 'u', 'l', '65', '8045', 'J', 'g', 'v', 3731, 'b', 'a', 7123, 2699, 4497, 'B', 'q', 'J', 4303, 6955, 2159, 'B', 6869, 'L', 'X', 'r', 'N', 'E', 'x', 'g', 'D', 'w', 'v', 2129]
A:
R, I, 2857, n, C, c, V, b, O, n, 7823, 7549, H, 9059, s, 8077, 2247, 701, a, Y, 9635, E, 863, 4271, u, l, 65, 8045