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: [8787, 7029, 'r', 523, 1981, 915, 4535, '7797', 'f', '9547', 'N', 'u', '1925', '7403', 'x', '5091', 'Z', 'm', '2411', 'X', '5433', 'W', '2017', '4071', '9805', 'S', 'T', 'c', '2893', '4221', 'd', 'u', 'l', 'B', '9053', 'e', '2595', 'k', 'b', 'Z', 6153, 7567, 'e', 'T', 2699, 9205, 'r', 8511, 3853, 'z'], ['y', 'n', 'C', 'F', 'K', 2479, 'I', 8895, 3383, 5415, 'F', 9803, '7797', 'f', '9547', 'N', 'u', '1925', '7403', 'x', '5091', 'Z', 'm', '2411', 'X', '5433', 'W', '2017', '4071', '9805', 'S', 'T', 'c', '2893', '4221', 'd', 'u', 'l', 'B', '9053', 'e', '2595', 'I', 'Y', 559, 'p', 'M', 2587, 6617, 'P', 3185, 'Z', 9441, 'J', 5341, 3273, 'p', 3079, 'H', 8629, 3289]
A:
7797, f, 9547, N, u, 1925, 7403, x, 5091, Z, m, 2411, X, 5433, W, 2017, 4071, 9805, S, T, c, 2893, 4221, d, u, l, B, 9053, e, 2595