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: ['R', 437, 'S', 'N', 'H', '3615', 'w', 'j', 'N', '6991', '7577', 'O', 'z', 'k', 'F', 'T', '3585', '5505', '5485', 'f', 'B', 3579, 'v', 8529, 'i'], ['w', 'j', 'X', 'G', 'I', 4567, 'H', 'w', 8869, 4535, 'L', 'q', 'u', 'V', 'L', '3615', 'w', 'j', 'N', '6991', '7577', 'O', 'z', 'k', 'F', 'T', '3585', '5505', '5485', 'f', 'R', 155]

A: 3615, w, j, N, 6991, 7577, O, z, k, F, T, 3585, 5505, 5485, f
****
Q: ['i', 'k', 'K', 9921, 'I', 5193, 4017, 5923, 'Z', 2293, 865, 'J', 'P', 'Q', '981', '943', '875', '3353', '4021', 't', '2269', '4875', 'W', 'Q', 'c', 'D', 'D', 'q', 'c', 'x', 3171, 'T', 'O', 'z', 'p', 'r', 'Q', 'X', 7273], ['h', 'n', 't', 's', 'Q', '981', '943', '875', '3353', '4021', 't', '2269', '4875', 'W', 'Q', 'c', 'D', 'D', 'v', 'P', 6433, 'L', 1493]

A:
Q, 981, 943, 875, 3353, 4021, t, 2269, 4875, W, Q, c, D, D
****