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: [1527, 8073, 7325, 'S', 'n', 3415, 2417, 'O', 4895, 1133, 'k', 517, 1927, 't', 'C', 8757, 4279, '5487', '3759', '5211', 'P', 'c', 'q', 'f', '7711', 'y', 'Y', '2639', 'k', 'O', 'U', '9923', 'o', 's', '8155', '5929', '6205', '3091', 'd', 'D', 'a', 't', 311, 'w'], [7587, 6707, 451, 'f', 8901, 5659, 9713, 6355, 'n', 4691, 5441, 6319, 'y', 3915, 'K', 5813, '5487', '3759', '5211', 'P', 'c', 'q', 'f', '7711', 'y', 'Y', '2639', 'k', 'O', 'U', '9923', 'o', 's', '8155', '5929', '6205', '3091', 'd', 'D', 'a', 'x', 'C', 4847, 'k', 2023, 9161, 'Y', 9097, 'x', 'D']
A:
5487, 3759, 5211, P, c, q, f, 7711, y, Y, 2639, k, O, U, 9923, o, s, 8155, 5929, 6205, 3091, d, D, a