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: [5367, 7499, 'a', '3619', '5119', '4219', '769', '8735', '6417', 'V', 'W', 'o', 'M', 'T', 'q', 'J', 't', 3991], [3847, 'h', 8145, 'z', 'C', 6061, 5347, 'U', 'a', '3619', '5119', '4219', '769', '8735', '6417', 'V', 'W', 'w', 5279, 4553]

A: a, 3619, 5119, 4219, 769, 8735, 6417, V, W
****
Q: ['j', 't', 5285, 'g', 9969, 'd', 8155, 619, 2049, '4007', '5887', 'H', 'd', '3235', 'N', 'G', '3433', '2161', 'H', 'H', '9715', '2207', '1793', '2505', 'W', '3845', '5117', 'c', 'P', 'F', 'U', 'x'], [4621, 8967, 335, 'J', 3595, 's', 7991, 'j', 'I', 1309, 'P', 'r', 2093, 6681, 817, 2465, '4007', '5887', 'H', 'd', '3235', 'N', 'G', '3433', '2161', 'H', 'H', '9715', '2207', '1793', '2505', 'W', '3845', '5117', 'N', 'f', 'o', 3045, 't', 'U', 8529, 2421, 4537, 507, 'a', 's']

A:
4007, 5887, H, d, 3235, N, G, 3433, 2161, H, H, 9715, 2207, 1793, 2505, W, 3845, 5117
****