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

Q: ['U', 6489, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'I', 'B', 'R', 'N', 9533, 'd'], ['U', 4287, 'f', 'R', 1407, 3893, 6739, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'Z', 2981, 'i', 'a', 'k', 5909, 'S', 9997]

A: o, e, Z, G, 8175, r, 1915, 8587, 8845
****
Q: ['r', 7309, 'a', 5957, 2551, 'c', '4533', 'L', '9417', 'm', '7989', '4409', 'a', 'M', 'h', 4163, 'n'], ['q', 4457, 'D', 2623, 't', 'F', 'c', '4533', 'L', '9417', 'm', '7989', '4409', 'u', 2719, 'G']

A: c, 4533, L, 9417, m, 7989, 4409
****
Q: ['T', 6387, 'n', 4489, 'y', 4253, 5475, 7777, 193, 'Q', 'G', 'E', 'w', 'B', '8785', 'L', 'Z', 'y', '2961', 'S', 'X', '6317', 'o', '1709', 'B', '2637', '4081', '2557', 'L', 'm', 'K', '1711', 'w', 9719, 'o', 3273, 'B', 4337, 601, 1783, 'v', 4613, 'l', 5835, 'w', 'P', 'A', 'T', 8257, 't'], ['f', 'F', 3097, 1409, 4147, 3371, '8785', 'L', 'Z', 'y', '2961', 'S', 'X', '6317', 'o', '1709', 'B', '2637', '4081', '2557', 'L', 'm', 'K', '1711', 'A', 'j', 3497, 2277]

A:
8785, L, Z, y, 2961, S, X, 6317, o, 1709, B, 2637, 4081, 2557, L, m, K, 1711
****