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: [2365, 49, 79, 'U', 6165, 'Z', 'K', '8151', 'o', '8361', 'G', '7531', '7939', '6881', 'K', 't', '2825', '4597', 'k', '10031', '1601', '5823', 'd', '9207', 'W', 'i', 8097, 'N', 707, 'G', 6629, 'F', 6409], ['w', 's', 2617, 1863, 8131, 9065, 1457, 'A', 9085, 'e', 'C', 4723, 'A', 9457, 2017, 'R', '8151', 'o', '8361', 'G', '7531', '7939', '6881', 'K', 't', '2825', '4597', 'k', '10031', '1601', '5823', 'd', '9207', 'W', 'p', 9193, 8631, 'f', 'P', 'R', 'B', 'A', 'k', 9815, 'Z', 6515, 2573]
A:
8151, o, 8361, G, 7531, 7939, 6881, K, t, 2825, 4597, k, 10031, 1601, 5823, d, 9207, W