In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Example input: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Example output: 8297, b
Example explanation: 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: ['Q', 6515, 'f', 1773, 3693, 3469, 9449, 'u', 'X', 1543, 2981, 's', 'H', 'P', 'N', 'X', '4659', '9415', '1983', '5099', 'D', '5529', '1411', '877', '1457', 's', '6313', 'W', 'H', 'f', '3321', 'j', 'Q', '5411', '8547', '5107', '7537', 'D', 'c', 'X', 'J', 'O', 'e', 'r', 8487, 'h', 1205, 2471, 6683, 5731, 8973, 'O', 9863, 5789, 3475, 'b', 4819], ['W', 2835, 'X', '4659', '9415', '1983', '5099', 'D', '5529', '1411', '877', '1457', 's', '6313', 'W', 'H', 'f', '3321', 'j', 'Q', '5411', '8547', '5107', '7537', 'D', 'c', 'X', 't', 'A', 'W', 'J', 9713, 'l', 5249, 2669, 8133, 'k', 'D', 'a', 1107, 'X']
A:
X, 4659, 9415, 1983, 5099, D, 5529, 1411, 877, 1457, s, 6313, W, H, f, 3321, j, Q, 5411, 8547, 5107, 7537, D, c, X