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

Q: ['I', 583, 4045, 't', 'N', 'H', '1017', 'u', '7255', '8583', 'M', 'x', '143', 'e', 'l', 'U', 'S', '791', 'a', '6927', '3887', 'R', 'i', 493, 2571, 7837], ['E', 3649, 'M', 7321, 8477, 1609, 'p', '1017', 'u', '7255', '8583', 'M', 'x', '143', 'e', 'l', 'U', 'S', '791', 'a', '6927', '3887', 'j', 4719, 'u', 'F', 'U', 'P', 'c', 3121, 'u', 6871, 'T']

A: 1017, u, 7255, 8583, M, x, 143, e, l, U, S, 791, a, 6927, 3887
****
Q: [875, 'U', 'g', 'q', 'H', 2847, 'f', '6811', 'B', '7549', 'K', 'r', 'V', 'x', 'P', 'X', '2469', '3845', 'W', 'e', 'n', 5885, 'w', 3345, 4693, 'H', 7789, 'y', 'j', 'e'], ['V', 'j', 6713, 2923, 'y', 6205, 'm', 5961, 9023, '6811', 'B', '7549', 'K', 'r', 'V', 'x', 'P', 'X', '2469', '3845', 'W', 'y', 7427, 5987]

A: 6811, B, 7549, K, r, V, x, P, X, 2469, 3845, W
****
Q: ['M', 3541, 'x', 'f', 'Q', 'c', '6659', '2737', 'b', 'J', '9549', '1045', '93', '2363', '4665', 'y', '4791', '713', '8259', '2255', 'f', 'm', 'w', '7005', '4197', '447', '2535', '4643', 'C', 'w', '8825', 'K', 'z', 'I', 'p', 'B', 'm', 7299, 285, 4173, 'n', 8777, 5077], [3439, 437, 'K', 6635, 8009, 7067, 'v', 3977, 'Q', 5565, 'F', 'Q', 'c', '6659', '2737', 'b', 'J', '9549', '1045', '93', '2363', '4665', 'y', '4791', '713', '8259', '2255', 'f', 'm', 'w', '7005', '4197', '447', '2535', '4643', 'C', 'w', '8825', 'K', 'z', 'f', 'H', 'H', 5137, 7229, 9713, 't', 2091, 'Y', 'Y', 'F', 'F', 167, 'o', 8161, 9793, 'E', 'O', 9519, 3791, 'c', 3271, 'D', 'n', 7749, 'Y']

A:
Q, c, 6659, 2737, b, J, 9549, 1045, 93, 2363, 4665, y, 4791, 713, 8259, 2255, f, m, w, 7005, 4197, 447, 2535, 4643, C, w, 8825, K, z
****