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

Q: [2471, 'o', 'j', 'J', 7539, 8949, 2023, 'b', 'w', 9935, 'i', 'A', '843', 'E', 'Q', 'M', '3185', 'h', 'u', 'K', 'D', '5655', '2057', '1169', 'Q', 'Y', 2199], [2019, 'Y', 2557, 2337, 'p', 'i', 'A', '843', 'E', 'Q', 'M', '3185', 'h', 'u', 'K', 'D', '5655', '2057', '1169', 'g', 7743, 'L', 'A', 5137, 3587, 'V', 1399]

A: i, A, 843, E, Q, M, 3185, h, u, K, D, 5655, 2057, 1169
****
Q: ['d', 2317, 'y', 8487, 'r', 4789, 5525, '3961', '1747', 'v', '7423', '847', 'a', '4969', 'T', 'L', '5383', 'W', 'U', 5749, 9533, 'T', 'Z', 'x'], [1401, 'F', 9303, 'w', 4629, 9053, 'k', 7351, 1261, '3961', '1747', 'v', '7423', '847', 'a', '4969', 'T', 'L', '5383', 'o', 'q']

A: 3961, 1747, v, 7423, 847, a, 4969, T, L, 5383
****
Q: [5053, 6391, 'O', 'J', 'O', 441, 'B', 'P', 'f', 'b', 'g', 1603, 4761, 'O', 'x', 'M', 2651, 411, 'B', 'U', 'V', '6579', '7249', 'O', '5175', '3327', '5485', 'g', 'u', '257', 'i', '4573', 'n', '6763', '7615', 'L', 'X', 'c', 't', 'j', '3539', '5397', 'b', 2035, 4533, 'i', 'M', 9607, 4297, 1263], ['Y', 5619, 9897, 6617, 4507, 5839, 'Y', 5263, 4683, 'o', 4975, 583, 3553, 'c', 5087, '6579', '7249', 'O', '5175', '3327', '5485', 'g', 'u', '257', 'i', '4573', 'n', '6763', '7615', 'L', 'X', 'c', 't', 'j', '3539', '5397', 'm', 4791, 2753, 5273, 9975]

A:
6579, 7249, O, 5175, 3327, 5485, g, u, 257, i, 4573, n, 6763, 7615, L, X, c, t, j, 3539, 5397
****