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: [5691, 'K', 5911, 6085, 3019, 3637, 6113, 8147, 4297, 4889, 'm', 'R', 'y', 'h', 6647, 'a', 'R', 'h', 4099, '3099', '3683', 'g', 'I', 's', '8677', 'R', '4155', '3437', 'f', '889', 'H', '1607', 'g', '1781', '5219', 't', '3263', 'o', '1927', '603', '7725', '9319', 'l', '6447', '4895', '3523', '851', 'A', 'q', 7339, 8091, 7893], ['b', 3835, 3517, 'p', 'Q', 'c', '3099', '3683', 'g', 'I', 's', '8677', 'R', '4155', '3437', 'f', '889', 'H', '1607', 'g', '1781', '5219', 't', '3263', 'o', '1927', '603', '7725', '9319', 'l', '6447', '4895', '3523', '851', 'A', 'N', 'E', 'R', 't', 'V', 'C', 'j', 'K', 'E', 7189, 8641, 'b', 'J', 'b', 2033, 631, 'Y', 5955, 8405, 'v', 'M', 'P', 'a', 2639, 6483, 3949, 'B', 5751]
A:
3099, 3683, g, I, s, 8677, R, 4155, 3437, f, 889, H, 1607, g, 1781, 5219, t, 3263, o, 1927, 603, 7725, 9319, l, 6447, 4895, 3523, 851, A