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

[Q]: [6397, 'W', 'k', 'v', 'E', '1941', '2295', 'q', '1357', '2041', '5263', '7781', 'w', 'N', 1329, 5233, 'U', 2563, 'L', 8547], [1857, 'F', 'g', 8381, 165, 'o', 7009, 5455, '1941', '2295', 'q', '1357', '2041', '5263', '7781', 'w', 'X', 'g']
[A]: 1941, 2295, q, 1357, 2041, 5263, 7781, w


[Q]: [1071, 'w', 3571, 'c', 3877, 't', 'H', 'U', 'C', 'Q', 'v', 'd', '9421', '3707', 'q', 'M', 'u', '7171', '8005', '9897', '4473', '6865', 'e', '4241', 'f', '9249', 'v', 'c', '6077', '1825', 'P', 'X', 'p', '5845', 'a', '7535', 'T', '2813', 'r', 'v', 10031, 'i', 'G', 't', 'K', 'c', 9299, 's', 6373], ['Z', 6069, 8247, 609, '9421', '3707', 'q', 'M', 'u', '7171', '8005', '9897', '4473', '6865', 'e', '4241', 'f', '9249', 'v', 'c', '6077', '1825', 'P', 'X', 'p', '5845', 'a', '7535', 'T', '2813', 'I', 'e', 'O', 1707, 7143, 'w', 'P', 'E', 7629, 6069, 'k', 3493, 'd', 'k', 4167, 'z', 3513, 'Y', 'g', 'K', 8501, 'n', 'Q', 6091]
[A]: 9421, 3707, q, M, u, 7171, 8005, 9897, 4473, 6865, e, 4241, f, 9249, v, c, 6077, 1825, P, X, p, 5845, a, 7535, T, 2813


[Q]: ['C', 'F', 8875, 9185, 3971, 'q', 'n', 'I', '7919', '2115', 'x', '5987', 'u', 1455], ['p', 8603, 'n', 'I', '7919', '2115', 'x', '5987', 'R', 3859, 1871, 'q', 'O', 'u']
[A]:
n, I, 7919, 2115, x, 5987