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: [2031, 'b', 2375, 'k', 'Y', 5559, 'r', 4591, 6819, 'A', 'p', 4363, 6511, 8775, 3427, 1313, 3171, 2351, 4683, 685, 583, 'y', '9601', 'X', 'O', 'Q', 'n', '4157', '4259', '1757', '6217', '7951', '1587', 'v', '6715', 'g', '3965', '8485', '3821', 'n', 'f', 'O', 'w', '8239', '93', 'Y', '8681', '4165', 'c', 'o', 'T', 'o', 7401, 'j'], ['e', 2783, 5297, 'h', 't', 'y', 885, 'J', 2685, 'I', 'V', 's', 'm', 'N', 'f', 'y', '9601', 'X', 'O', 'Q', 'n', '4157', '4259', '1757', '6217', '7951', '1587', 'v', '6715', 'g', '3965', '8485', '3821', 'n', 'f', 'O', 'w', '8239', '93', 'Y', '8681', '4165', 'c', 'm', 'b', 8927, 7819, 5209, 4081, 'r', 'M', 411, 401, 'y', 's', 'T', 'P', 2445, 8273, 165, 4843, 1541]
A:
y, 9601, X, O, Q, n, 4157, 4259, 1757, 6217, 7951, 1587, v, 6715, g, 3965, 8485, 3821, n, f, O, w, 8239, 93, Y, 8681, 4165, c