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

Q: [9049, 'c', 'B', 'H', '8393', '3255', 'C', '6239', 'G', '1819', '6771', '1217', '2853', '7341', 'C', 'S', '2155', 'N', '2837', 'N', 'v', '9271', 'Q', 'g', '8921', '7371', 'G', 'N', 'z', 8197, 'p', 8453, 2429, 1051, 'Y', 4315, 5473, 't', 4905, 'J', 'l', 5959, 't', 'x', 'F', 8431], [9507, 2299, 6223, 3229, 4513, 3943, 'R', 2817, '8393', '3255', 'C', '6239', 'G', '1819', '6771', '1217', '2853', '7341', 'C', 'S', '2155', 'N', '2837', 'N', 'v', '9271', 'Q', 'g', '8921', '7371', 'G', 'T', 3597]

A: 8393, 3255, C, 6239, G, 1819, 6771, 1217, 2853, 7341, C, S, 2155, N, 2837, N, v, 9271, Q, g, 8921, 7371, G
****
Q: [4731, 'z', 8923, 1325, 'P', 8435, 'u', 'B', 'N', 8191, 'O', '3019', '4077', 'w', 'W', 'x', 'z', '2233', '6509', 'N', '3069', '5471', 'K', 'x', 'q', '979', 'M', 'O', 'H', 9453], [4977, 'E', 4865, 'O', '3019', '4077', 'w', 'W', 'x', 'z', '2233', '6509', 'N', '3069', '5471', 'K', 'x', 'q', '979', 'M', 'R', 'T', 7065]

A: O, 3019, 4077, w, W, x, z, 2233, 6509, N, 3069, 5471, K, x, q, 979, M
****
Q: ['I', 'B', 563, 6853, 'g', 'A', '5067', '3763', 'm', 'e', 'R', '8319', 'p', '5125', 'W', 'G', 'W', 'l', 971, 4797, 8829, 4733, 7091, 4755, 4417, 3991, 'w'], [4127, 455, 2793, 1951, 'x', 'Y', 'y', 'C', 'C', 'g', 'A', '5067', '3763', 'm', 'e', 'R', '8319', 'p', '5125', 'W', 'G', 'I', 1433, 'y']

A:
g, A, 5067, 3763, m, e, R, 8319, p, 5125, W, G
****