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

Q: ['r', 'X', 7017, 'D', 2235, 'p', 'i', 3287, 'z', '9245', 'S', '8055', '1843', '147', '4353', '9543', '9247', '6361', '609', 'v', 'z', '4349', 'd', '6611', '5101', 'G', 'W', 4175, 5695, 'r', 9809, 8187, 'G'], [8989, 2959, 7907, 'F', 2481, 'Q', 9095, '9245', 'S', '8055', '1843', '147', '4353', '9543', '9247', '6361', '609', 'v', 'z', '4349', 'd', '6611', '5101', 'G', 'g', 5163, 'B', 2487, 'r', 'j', 'l', 293, 'Z']

A: 9245, S, 8055, 1843, 147, 4353, 9543, 9247, 6361, 609, v, z, 4349, d, 6611, 5101, G
****
Q: ['G', 'E', 'A', 'u', 'x', 'W', 'o', 'e', 'i', 'B', 3441, 'S', 8211, 'E', '5913', '4807', '8365', 'v', '5383', 'V', 'M', 'i', 'I', 'J', '1475', '3385', 'r', '9983', 'U', 'i', 'a', 9789, 4073, 'J', 'C', 8849, 6749, 'G', 5237, 9697, 1425, 'J', 5755], ['W', 'S', 'V', 'r', 'd', 'v', 7267, 7665, 'c', 3763, 'Z', 7427, 4575, 'D', 'q', 'U', '5913', '4807', '8365', 'v', '5383', 'V', 'M', 'i', 'I', 'J', '1475', '3385', 'r', '9983', 'U', 'i', 'z', 4797]

A: 5913, 4807, 8365, v, 5383, V, M, i, I, J, 1475, 3385, r, 9983, U, i
****
Q: ['q', 9869, 2113, 6537, 'b', 'f', 8313, 'L', 'L', 9591, '6865', '6559', 'K', 'o', '455', 'G', 'K', '9347', '2261', '5655', '8475', 'P', '8137', '4323', '9073', 'z', 'F', 'c', '937', '5841', '1231', '131', 'Z', 'u', 's', '4161', 'x', 'Q', 1621, 4771, 7041, 6591, 'v', 'C', 9105, 8749, 7117, 1863, 'V', 'w'], [647, 8557, 6811, 'D', 2157, 9451, 6771, 'd', 'L', 4627, 5233, '6865', '6559', 'K', 'o', '455', 'G', 'K', '9347', '2261', '5655', '8475', 'P', '8137', '4323', '9073', 'z', 'F', 'c', '937', '5841', '1231', '131', 'Z', 'u', 's', '4161', 'x', 'c', 'h', 'x', 'l', 'm', 'q', 'S', 8717, 7043, 'l', 'a']

A:
6865, 6559, K, o, 455, G, K, 9347, 2261, 5655, 8475, P, 8137, 4323, 9073, z, F, c, 937, 5841, 1231, 131, Z, u, s, 4161, x
****