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

Q: [319, 1325, 9567, 'M', 'm', 1759, 't', 'Z', 'X', 7981, 2409, 5023, 'b', '8661', '6609', '8213', 'Y', '9541', '8065', 'M', '8267', 'V', 'K', '3217', '1111', '1411', 'u', '9705', 'V', 'U', '3171', '4195', 'Z', 't', 'p', 'I', 5289, 1221, 'k', 5727, 5411, 7127, 'F', 'J', 'o', 7587, 'm', 237, 415, 8413, 'j'], ['O', 5043, '8661', '6609', '8213', 'Y', '9541', '8065', 'M', '8267', 'V', 'K', '3217', '1111', '1411', 'u', '9705', 'V', 'U', '3171', '4195', 'Z', 't', 'p', 'v', 5793]

A: 8661, 6609, 8213, Y, 9541, 8065, M, 8267, V, K, 3217, 1111, 1411, u, 9705, V, U, 3171, 4195, Z, t, p
****
Q: [7217, 5633, 8727, 'l', 's', 'u', 'T', 'F', 'n', 'L', 'G', 'K', 'S', '523', '9835', '1331', '7069', '9089', 'z', '8111', 'C', '7653', 'P', 'J', 7151, 'J', 1523, 'p', 369, 8817, 'N', 'B', 1305, 1271, 1349, 3329, 1437, 'p'], [595, 7009, 'f', 463, 'B', 'V', 7397, 'n', 'L', 'G', 'K', 'S', '523', '9835', '1331', '7069', '9089', 'z', '8111', 'C', '7653', 'P', 'Y', 'x', 7741, 4563, 'O', 'l', 'D', 'U', 5221]

A: n, L, G, K, S, 523, 9835, 1331, 7069, 9089, z, 8111, C, 7653, P
****
Q: [2721, 2251, 261, 8247, 't', 's', '7037', '8387', '9951', '8229', '9', 'm', '535', '2671', '3077', 'd', '9775', 'T', '4381', '8703', 'X', '8237', '655', '5135', '7789', '6271', 'F', '979', 'd', 'd', 'D', 'N', 'U', 2995, 1795, 'T', 8837, 337, 'j', 'y', 5287, 6215, 'b', 'g'], [9551, 811, 'v', 7719, 8775, 3007, 'e', 'w', 5789, 'c', 1063, 5021, 5399, 't', 's', '7037', '8387', '9951', '8229', '9', 'm', '535', '2671', '3077', 'd', '9775', 'T', '4381', '8703', 'X', '8237', '655', '5135', '7789', '6271', 'F', '979', 'd', 'd', 'D', 'N', 'j', 'C', 7525, 'h', 'y', 'O', 1921, 'O', 7731, 1599, 7461, 6963, 7475, 5225, 6971, 'N']

A:
t, s, 7037, 8387, 9951, 8229, 9, m, 535, 2671, 3077, d, 9775, T, 4381, 8703, X, 8237, 655, 5135, 7789, 6271, F, 979, d, d, D, N
****