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

[EX Q]: ['S', 'o', 9247, 'W', 'G', 5923, 4791, '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 's', 'T', 5829, 'p'], ['K', 'U', 'H', 8611, 1005, 'I', '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 'C', 9577, 8279, 2247, 'x', 4917, 'H']
[EX A]: 8083, 3207, 9137, 9359, 9297, 9667, 75, h, 9671

[EX Q]: ['K', 1657, '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'X', 'n', 3631, 'o', 'm'], ['P', 6249, 7565, 's', 1041, 'V', 'D', '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'n', 'U', 'z', 2559, 5379, 6985, 6059]
[EX A]: 5001, 8571, 2343, 9471, P, 6369, 9299

[EX Q]: [5393, 'I', 6865, 8847, 9165, 4379, 'F', 4663, 1773, 'R', 'D', 4887, 'V', 'L', 3671, 7521, 'A', 7523, 5989, 'v', 'i', 'x', '5199', '265', 'r', '1499', 'h', 'L', '5307', 'R', 'U', '9461', 'i', 'Z', 'Q', '221', '1951', '6951', '2041', 'R', 'T', 'm', '5963', 'X', 'P', '7715', 'H', 2653, 'E', 'y', 259, 'A', 6037, 'n', 'x', 7615, 1877, 'p', 1685, 'h', 'B', 'K'], ['h', 'T', 10009, 9891, 7081, 'n', 8079, 5015, 5287, 'q', 'E', 6469, 1693, 4627, '5199', '265', 'r', '1499', 'h', 'L', '5307', 'R', 'U', '9461', 'i', 'Z', 'Q', '221', '1951', '6951', '2041', 'R', 'T', 'm', '5963', 'X', 'P', '7715', 'C', 5699, 3529, 9839, 'H', 'O', 371, 7409, 'N', 9347, 'x', 'c', 5973, 4201, 'G', 'r', 'a', 'S', 9227, 6995, 9221]
[EX A]:
5199, 265, r, 1499, h, L, 5307, R, U, 9461, i, Z, Q, 221, 1951, 6951, 2041, R, T, m, 5963, X, P, 7715