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: [3873, 'A', 'P', 'B', 6637, 6747, 1753, 3833, 7257, 2355, 6045, 'L', 'b', 6701, 1479, 3691, 289, 'c', 't', 'k', 'J', '6067', '6279', 'F', '833', '6525', 'Y', '9877', '5259', '2663', '6017', '1663', 'o', 'D', '939', '5649', 't', '6683', 'O', '403', 'G', '8065', 'R', '3265', 'n', 'Z', '787', 'T', 'd', 6817, 'N', 7393, 6473, 'G', 4771, 'N', 'W', 3509, 'H', 'A', 'A', 'B', 'r', 4269, 2445, 1139, 8845], [6919, 5321, 6497, 9947, 'B', 7065, 'X', 'L', 'R', 'E', 3055, 4989, 1541, 4261, 'C', 'Z', 'h', 'g', 'J', '6067', '6279', 'F', '833', '6525', 'Y', '9877', '5259', '2663', '6017', '1663', 'o', 'D', '939', '5649', 't', '6683', 'O', '403', 'G', '8065', 'R', '3265', 'n', 'Z', '787', 'd', 'O', 'G', 'R', 'e', 449, 3465, 8811, 'e', 'b', 'V', 2349, 1545, 7935, 4113, 9477, 9497, 'v', 8639, 'D', 4055, 'p', 6845, 'B', 'O']
A:
J, 6067, 6279, F, 833, 6525, Y, 9877, 5259, 2663, 6017, 1663, o, D, 939, 5649, t, 6683, O, 403, G, 8065, R, 3265, n, Z, 787