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: [1737, 'R', 'k', 'c', 8709, 'I', 9747, 'd', 'C', 3673, 'h', 3819, 'C', 'Q', 8063, 5667, 4619, 3991, 697, '5343', '7427', '2987', 'V', '3465', '4631', 'n', '2429', 't', 'D', 'y', '3541', 'n', '763', 'Q', 'V', 't', '5501', 'D', '5007', 'm', 7975, 5269, 'a', 'R', 5297, 4927, 7723, 'p', 'P', 3867, 4297], [9315, 8861, 'Z', 293, '5343', '7427', '2987', 'V', '3465', '4631', 'n', '2429', 't', 'D', 'y', '3541', 'n', '763', 'Q', 'V', 't', '5501', 'D', '5007', 'k', 39, 4511, 'P', 8573, 'J', 10019, 8163, 4487, 'L', 5065, 'F', 'r', 6627, 'T', 'L', 'G', 'v']
A:
5343, 7427, 2987, V, 3465, 4631, n, 2429, t, D, y, 3541, n, 763, Q, V, t, 5501, D, 5007