Detailed Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['f', 'F', 'a', 5237, 4225, 'N', 8929, 7223, 'T', 5855, 'u', 3251, 6717, 'S', 'p', 'P', 2143, 6585, 'B', 'x', 2949, 'h', '6035', 'X', '8371', '9491', 'j', 'j', 'v', 'i', '2875', '895', 'q', '3971', '5055', 'H', 'i', '4511', '4093', 'T', '2641', 'h', '2079', '6475', 'H', '2361', '1165', 'K', 'G', 'y'], [5311, 'p', 8207, 'T', 499, 's', 4489, 735, 579, 7913, 'g', 6493, 2091, 'h', '6035', 'X', '8371', '9491', 'j', 'j', 'v', 'i', '2875', '895', 'q', '3971', '5055', 'H', 'i', '4511', '4093', 'T', '2641', 'h', '2079', '6475', 'H', '2361', '1165', 'K', 'S', 741, 1421, 5331, 3043, 'm']
A:
h, 6035, X, 8371, 9491, j, j, v, i, 2875, 895, q, 3971, 5055, H, i, 4511, 4093, T, 2641, h, 2079, 6475, H, 2361, 1165, K