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

Q: [8507, 'H', 'o', 'N', 'r', 'I', 3733, 'r', 6877, 5193, 1389, 7105, '8513', 'A', '5801', 'M', '1339', '6353', 'C', '3591', 'W', '7703', 'D', 'i', '1975', '9169', '7427', '8345', 'l', 'C', 'C', 'd', '7579', '1463', '8451', 'H', 'K', 'u', '8561', 'x', 3575, 'A', 7405, 'o', 'J', 6163, 'y', 'O', 'g', 7633, 'A', 6531, 4627, 'P', 'O', 'j', 'S', 'b', 'c', 'V', 7923, 'K', 'i', 5625, 893, 'V'], ['W', 'O', 6909, 'a', 1667, 'n', 'D', 'i', 7719, 4109, 4167, 4099, 5473, 'b', 'g', 'R', '8513', 'A', '5801', 'M', '1339', '6353', 'C', '3591', 'W', '7703', 'D', 'i', '1975', '9169', '7427', '8345', 'l', 'C', 'C', 'd', '7579', '1463', '8451', 'H', 'K', 'u', '8561', 'h', 'Z', 383, 2829, 5461, 1851, 'F', 'l', 981, 6545, 'v', 7707, 'W', 675, 'V', 'C', 599, 'd', 1967, 'X', 'y', 'B', 'K']

A: 8513, A, 5801, M, 1339, 6353, C, 3591, W, 7703, D, i, 1975, 9169, 7427, 8345, l, C, C, d, 7579, 1463, 8451, H, K, u, 8561
****
Q: ['l', 581, 4659, 2559, 'f', 'S', '1219', '6225', '515', '5369', 'w', 'V', 7431, 6195, 1731, 'J', 9541], [8813, 7733, 'n', 'a', 'h', 981, 'S', '1219', '6225', '515', '5369', 'w', 'q', 'A', 'U', 'J']

A: S, 1219, 6225, 515, 5369, w
****
Q: [9487, 'W', 6879, 5217, 'B', 7195, 3359, 2801, 6433, 's', 1169, 'h', '6065', 'J', 'u', '7303', '1631', '37', '6199', 'J', '6871', '9749', 'P', '4827', '5077', 'L', 'e', 'y', 8515, 'g', 'e', 'u', 'l', 9535], [7969, 'c', 'A', 3311, 'J', 6327, 2135, 6741, 7589, 'X', 'j', 789, '6065', 'J', 'u', '7303', '1631', '37', '6199', 'J', '6871', '9749', 'P', '4827', '5077', 'T', 7723, 'D', 'i', 'Y', 5287, 889, 'W', 'W']

A:
6065, J, u, 7303, 1631, 37, 6199, J, 6871, 9749, P, 4827, 5077
****