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

Q: ['w', 'i', 5729, 'G', 8651, '1845', 'a', '715', 'O', '3649', 'w', '8821', '2545', '1011', 'u', '895', '4133', 'n', '3759', 'w', 'X', 'R', 'A', 5949, 8347, 9169, 'N', 9753, 4353, 9447, 5747, 4347, 'f', 8247, 'D', 'y'], ['b', 'd', 237, 'y', 9735, 'M', 'j', 'f', 9789, 'x', 4217, '1845', 'a', '715', 'O', '3649', 'w', '8821', '2545', '1011', 'u', '895', '4133', 'n', '3759', 'w', 'X', 'E', 'e', 4021, 7065, 1651, 'n']

A: 1845, a, 715, O, 3649, w, 8821, 2545, 1011, u, 895, 4133, n, 3759, w, X
****
Q: [5705, 4661, 4953, '6779', 'z', 'I', 'f', 'm', '3721', 'U', 'F', '2069', '1831', 'H', '2683', '139', '3889', '1427', '3339', 'T', '9517', '9753', '9041', '7995', '8657', 'q', '4753', '2789', 'C', 'a', 'W', 'a', 'R', 6843, 'D'], ['i', 475, 3657, 'k', 'P', 3397, 7147, 8055, 8965, 'X', 'g', 5421, 'e', 6979, 'P', 'G', 'c', 489, 9409, 9473, 'y', 6959, '6779', 'z', 'I', 'f', 'm', '3721', 'U', 'F', '2069', '1831', 'H', '2683', '139', '3889', '1427', '3339', 'T', '9517', '9753', '9041', '7995', '8657', 'q', '4753', '2789', 'C', 'a', 'h', 'c', 'g', 'C', 4493, 'R', 6359, 3315, 8949]

A: 6779, z, I, f, m, 3721, U, F, 2069, 1831, H, 2683, 139, 3889, 1427, 3339, T, 9517, 9753, 9041, 7995, 8657, q, 4753, 2789, C, a
****
Q: [8131, 8393, 5661, 'r', '8729', '317', '1281', '8341', '9947', '2945', '867', 'C', 'D', 'N', '2175', '5973', 'A', 1295, 1977, 1363, 2765, 'H', 'f', 'J'], ['f', 6789, 'u', 'i', '8729', '317', '1281', '8341', '9947', '2945', '867', 'C', 'D', 'N', '2175', '5973', 'i', 9277, 6077, 3871, 'p']

A:
8729, 317, 1281, 8341, 9947, 2945, 867, C, D, N, 2175, 5973
****