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

Q: [787, 577, 1283, 10019, '3229', 'C', 'b', '8319', 'j', 7553, 8091], [4091, 1749, 'L', 'A', '3229', 'C', 'b', '8319', 'U', 9603]

A: 3229, C, b, 8319
****
Q: ['C', 'a', 5955, 5411, 'a', 'x', '9177', '1943', 'P', '7863', '6755', 'o', '5373', '2989', 'g', 'A', 'a', 'J', 'B', '8111', 'u', 'x', '4477', 'N', 'f', '4307', 'e', '3095', 'e', 'R', 'A', 'R', 5893, 't', 5495, 2381, 2823, 't', 'c', 'k', 9259, 4655, 8337, 8027, 'D', 7767, 'F'], ['V', 'w', 'x', 'p', 'N', 4045, 'h', 'h', 2607, 6243, 'F', 8575, 7799, 5463, 'N', 'j', 5469, 'x', '9177', '1943', 'P', '7863', '6755', 'o', '5373', '2989', 'g', 'A', 'a', 'J', 'B', '8111', 'u', 'x', '4477', 'N', 'f', '4307', 'e', '3095', 's', 9037, 'F', 'a', 'S', 9619, 8457, 'o', 8497, 675, 'B', 't', 'Y', 'x', 'x', 'K', 9773]

A: x, 9177, 1943, P, 7863, 6755, o, 5373, 2989, g, A, a, J, B, 8111, u, x, 4477, N, f, 4307, e, 3095
****
Q: ['X', 6913, '5225', 'R', '8467', '5189', 'l', 'b', 'a', 'Q'], ['K', 'h', '5225', 'R', '8467', '5189', 'l', 'b', 'U', 'C', 'R']

A:
5225, R, 8467, 5189, l, b
****