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

[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]
[A]: 5001, 8571, 2343, 9471, P, 6369, 9299

[Q]: ['w', 3897, 'U', 'a', '455', '6499', '8975', '9003', 'O', 'j', 'T', 'P', 'C', 'z', 5141, 1751, 6731, 'r'], ['B', 8071, 703, 'G', 885, 'Z', 2391, 1749, 4177, 'U', 'a', '455', '6499', '8975', '9003', 'O', 'j', 'T', 'D', 8751, 'y', 2941]
[A]: U, a, 455, 6499, 8975, 9003, O, j, T

[Q]: [3429, 1327, 'c', 7703, 'd', 5941, 8919, 'Z', 'X', 'Z', 'N', '9225', '789', 'v', '1931', 'H', '5433', 'Y', '3221', '7427', '5607', '4275', '4525', 'c', 4853], ['o', 7919, 'Z', 'X', 'Z', 'N', '9225', '789', 'v', '1931', 'H', '5433', 'Y', '3221', '7427', '5607', '4275', '4525', 'd', 9611, 9125, 'k', 'U', 2177, 9129, 'v', 'J', 'c', 5017, 'Z', 'M', 5387]
[A]:
Z, X, Z, N, 9225, 789, v, 1931, H, 5433, Y, 3221, 7427, 5607, 4275, 4525