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: ['U', 'k', 1431, 7913, 6109, 1883, 'g', 'M', 'W', '1633', 'p', 'C', '27', '4449', '3731', 'P', 'o', '5625', 'd', 'a', 'B', 'x', '1981', '1389', '2195', 'O', '2813', '7295', '6791', '7009', 'E', 'Z', 'J', '1721', '9083', '3201', '7087', 'S', 5155, 'i', 1561, 'V', 7747, 'F'], [4819, 'v', 9591, 9873, 't', 1947, 4801, 7505, 't', 2815, 5603, 3505, 'u', 329, 5035, 7175, 'r', 4645, 6967, 8151, 6481, 1835, 'm', 5167, 'M', 'W', '1633', 'p', 'C', '27', '4449', '3731', 'P', 'o', '5625', 'd', 'a', 'B', 'x', '1981', '1389', '2195', 'O', '2813', '7295', '6791', '7009', 'E', 'Z', 'J', '1721', '9083', '3201', '7087', 'D', 2731, 2001, 'G', 'F', 3541, 6267, 6181, 8595, 5849, 'K', 'D', 9013, 6647, 'p']
A:
M, W, 1633, p, C, 27, 4449, 3731, P, o, 5625, d, a, B, x, 1981, 1389, 2195, O, 2813, 7295, 6791, 7009, E, Z, J, 1721, 9083, 3201, 7087