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

Q: [7491, 'w', 'F', 2929, '6969', '2729', '4371', '6153', 'a', 'r', 'y', 'h', 'y', 'g', 'C', '1381', '5801', '8697', '4093', 'X', 'n', 821, 1983, 'S', 6305, 'O', 6533, 'q', 901, 'U', 2911], [3143, 1605, 4373, 'T', 7055, '6969', '2729', '4371', '6153', 'a', 'r', 'y', 'h', 'y', 'g', 'C', '1381', '5801', '8697', '4093', 'r', 'Z', 943, 861, 8883, 'b', 'n', 3409, 8943, 'M']

A: 6969, 2729, 4371, 6153, a, r, y, h, y, g, C, 1381, 5801, 8697, 4093
****
Q: ['x', 'H', 'i', 1013, 5655, 'y', 4853, 'Q', 1209, 'w', 'w', 'a', 'w', 7329, '961', 'j', '1783', '7579', 'e', '6525', 'Y', 'K', 'P', '293', '4793', '7251', '531', '3813', '4103', 'o', '6039', '9175', '3041', 'p', 'D', 'u', '7075', 'G', 'i', 'w', 4131, 867, 'y', 3835, 'o', 't', 1181, 4425, 'P'], ['J', 4263, 'Z', 9575, 'W', 'h', 'j', 9697, 4711, 'D', 9269, 1163, 7659, 8523, 'f', 'W', 'L', 'h', 'i', '961', 'j', '1783', '7579', 'e', '6525', 'Y', 'K', 'P', '293', '4793', '7251', '531', '3813', '4103', 'o', '6039', '9175', '3041', 'p', 'D', 'u', '7075', 'G', 'n', 'i', 71]

A: 961, j, 1783, 7579, e, 6525, Y, K, P, 293, 4793, 7251, 531, 3813, 4103, o, 6039, 9175, 3041, p, D, u, 7075, G
****
Q: [3551, 4103, '5111', '7093', 'D', '2467', 'X', 'o', 'l', 8637, 'B'], [2011, 'h', 2385, 8057, 'C', '5111', '7093', 'D', '2467', 'X', 'g', 8407, 'n', 5645, 8499]

A:
5111, 7093, D, 2467, X
****