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

Q: ['I', 583, 4045, 't', 'N', 'H', '1017', 'u', '7255', '8583', 'M', 'x', '143', 'e', 'l', 'U', 'S', '791', 'a', '6927', '3887', 'R', 'i', 493, 2571, 7837], ['E', 3649, 'M', 7321, 8477, 1609, 'p', '1017', 'u', '7255', '8583', 'M', 'x', '143', 'e', 'l', 'U', 'S', '791', 'a', '6927', '3887', 'j', 4719, 'u', 'F', 'U', 'P', 'c', 3121, 'u', 6871, 'T']

A: 1017, u, 7255, 8583, M, x, 143, e, l, U, S, 791, a, 6927, 3887
****
Q: ['H', 191, 5269, 'I', 8869, 'N', 9617, 7679, 'C', '9103', '905', 'N', 'n', 'E', '1397', '1061', '4683', 'x', '5823', 'w', 'F', 'i', 'm', 'L', 5561], ['x', 2143, 2583, 'l', 781, 'i', 67, 7861, 'q', 7467, 8599, '9103', '905', 'N', 'n', 'E', '1397', '1061', '4683', 'x', '5823', 'w', 'F', 'y', 'G', 1961, 'V', 'B', 877, 'J', 6495, 3531]

A: 9103, 905, N, n, E, 1397, 1061, 4683, x, 5823, w, F
****
Q: ['A', 'F', 'F', 7693, 1047, 'j', 9083, 9189, 'X', 3647, 6677, 'l', 'r', 'U', 'T', '4673', '1831', 'y', 'v', 'R', '5821', '5273', '7243', 'R', 'Z', 'X', '1487', '2661', '8397', 'q', 'm', 'M', '9555', 'c', 's', 'G', '2117', '4135', 'g', 's', 'Z', 4943, 'M', 'q', 'd', 9903, 523, 2081, 'x'], [3143, 'F', 8057, 'd', 9451, 5585, 6895, 'Y', 4665, 3075, 3657, 'b', 'L', 'U', 'T', '4673', '1831', 'y', 'v', 'R', '5821', '5273', '7243', 'R', 'Z', 'X', '1487', '2661', '8397', 'q', 'm', 'M', '9555', 'c', 's', 'G', '2117', '4135', 'k', 'u', 1003, 'T', 1373, 9835, 4563, 3629, 767, 3799, 1757, 7193, 'Q']

A:
U, T, 4673, 1831, y, v, R, 5821, 5273, 7243, R, Z, X, 1487, 2661, 8397, q, m, M, 9555, c, s, G, 2117, 4135
****