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: [4051, 'c', 'f', 8581, 1235, 5845, 'D', 'i', 'i', 129, 1399, '7829', 'n', 'G', '4261', '4529', 'i', '63', 'o', '6117', 'F', 'K', '7043', '5391', 'X', 'r', 'V', 'f', '6541', 'X', '1289', 't', 'P', '5097', 'y', '6529', '7729', 'y', 'r', 'Q', 'c', 'r', 'J', 5431, 785, 3371, 'A', 't', 'v', 6259, 5327, 'I', 8091, 'g', 'U', 'l', 'v', 8403, 9247, 'P', 717, 'C', 'D', 9743, 'H', 21], [9335, 'h', 'p', 4233, 'A', 'W', 'J', 'l', 2579, '7829', 'n', 'G', '4261', '4529', 'i', '63', 'o', '6117', 'F', 'K', '7043', '5391', 'X', 'r', 'V', 'f', '6541', 'X', '1289', 't', 'P', '5097', 'y', '6529', '7729', 'y', 'r', 'N', 5405, 'M', 8431, 2191, 'y', 9387, 3477, 'G', 'h', 'F', 'c', 'S', 6147, 'U', 2209, 'K', 'D', 'o', 9959, 'p']
A:
7829, n, G, 4261, 4529, i, 63, o, 6117, F, K, 7043, 5391, X, r, V, f, 6541, X, 1289, t, P, 5097, y, 6529, 7729, y, r