Detailed Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['S', 'E', 8053, 'F', 'w', 7403, 'R', 2833, 3287, 6329, 'G', 6729, 'E', 2547, 9011, 2233, 8009, 'v', 'G', 'X', 6831, 6035, 'c', 'w', 'v', '4623', '9939', 'Z', '7257', 'h', '7955', '3739', '5955', '4659', 'X', 'k', 'G', '8487', 'v', 'm', '199', 'D', 'W', '4007', 'b', '9591', '2875', '3989', 'b', '9519', '8799', '4997', '983', '3227', '8421', 'T', 'r', 7771, 2193, 'E', 'P', 'O', 'c', 'n', 'O', 'U', 'q', 6339, 'L', 3387, 7769, 4045, 'Z', 'K', 'k', 8169, 's', 851, 'R', 'H', 6687], [8571, 3945, 5611, 'K', 'Z', 7429, 7597, 'r', 7721, 'W', 5727, 455, 9617, 5317, 8351, 7379, 'B', 'V', 5579, 9373, 4603, 'y', 1373, 'Y', 6739, 6571, '4623', '9939', 'Z', '7257', 'h', '7955', '3739', '5955', '4659', 'X', 'k', 'G', '8487', 'v', 'm', '199', 'D', 'W', '4007', 'b', '9591', '2875', '3989', 'b', '9519', '8799', '4997', '983', '3227', '8421', 'X', 'v', 'G', 'c', 8459, 405, 'n', 1675, 6507, 'z', 'N', 9737, 4027, 'S', 1353, 9661, 6803, 'Z', 'z', 8857, 4615, 'Z', 7665, 's', 4251, 7533, 'F', 8519, 'd']
A:
4623, 9939, Z, 7257, h, 7955, 3739, 5955, 4659, X, k, G, 8487, v, m, 199, D, W, 4007, b, 9591, 2875, 3989, b, 9519, 8799, 4997, 983, 3227, 8421