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

Q: ['x', 495, 'L', 'O', 2935, 'y', 163, 3507, 6515, '5249', '9751', '8269', '923', '10005', '9739', 'u', 'X', 'y', '4535', 'I', 'V', 'f', '8511', '8955', 's', '2255', '1', '7831', 't', 'w', 1985, 'F', 'V', 5375, 6359, 7963, 4103, 2625, 'p', 'N', 7945, 'L', 6909], [251, 'J', 'k', 4075, 'd', 'x', 'j', 'K', 'u', 605, 1667, 8527, 6845, 2537, 'O', 9259, 'o', 'B', '5249', '9751', '8269', '923', '10005', '9739', 'u', 'X', 'y', '4535', 'I', 'V', 'f', '8511', '8955', 's', '2255', '1', '7831', 't', 'j', 'S', 'H', 1289]

A: 5249, 9751, 8269, 923, 10005, 9739, u, X, y, 4535, I, V, f, 8511, 8955, s, 2255, 1, 7831, t
****
Q: ['p', 'Z', 'Z', 5929, 7441, 'g', 7897, 'p', 4341, 'F', 'c', 'i', '1227', 'p', '6197', 'M', '3549', 'G', '11', '7667', 'T', '7819', 'T', '8965', '4725', 'R', 'Q', '4873', '4701', 'F', 2669, 3809, 645, 6921, 'R', 9767, 'h', 'J', 7893, 'h'], [937, 'a', 'i', '1227', 'p', '6197', 'M', '3549', 'G', '11', '7667', 'T', '7819', 'T', '8965', '4725', 'R', 'Q', '4873', '4701', 'Z', 'q', 'u', 6333, 5793, 'a', 783, 'K', 'R']

A: i, 1227, p, 6197, M, 3549, G, 11, 7667, T, 7819, T, 8965, 4725, R, Q, 4873, 4701
****
Q: ['r', 'J', 4879, 6355, 'h', 'z', 'x', 'm', 'S', 8595, 7151, 'f', '7903', 's', '1373', '8799', 'z', '2405', '1161', 'C', '8483', 'Q', 'M', '6815', 'p', 'Q', 7809, 'W', 'r', 5509, 'X', 'x'], [603, 'z', 'h', 4183, 2657, 'Z', 'd', 'i', 3343, 'k', 'f', '7903', 's', '1373', '8799', 'z', '2405', '1161', 'C', '8483', 'Q', 'M', '6815', 'p', 'B', 'y', 'N', 'z', 'z', 'q', 'w', 6571, 'A', 9799, 'p', 'f']

A:
f, 7903, s, 1373, 8799, z, 2405, 1161, C, 8483, Q, M, 6815, p
****