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

Q: ['E', 'M', 'B', 4331, 'f', 3649, 'r', 7345, 7215, '4923', '4941', '4355', 'v', '5773', '1229', '1517', '4395', '5783', '161', 'b', 'U', 5067, 3717, 'J', 'u', 'X', 3429], [4891, 'Z', 4213, 'f', 'z', 't', 2777, 6509, 9497, 6257, 1147, '4923', '4941', '4355', 'v', '5773', '1229', '1517', '4395', '5783', '161', 'b', 'a', 9125, 'k', 8711, 'w']

A: 4923, 4941, 4355, v, 5773, 1229, 1517, 4395, 5783, 161, b
****
Q: ['m', 'R', 1791, 'v', 5547, 'p', 'j', 5069, 8061, 'G', 's', 1521, 2285, 1963, 'n', 'a', '4537', 'X', 'Z', '8981', 'W', 'u', '827', '4681', '2433', '3179', 'p', 'a', '4675', 'r', '3527', '3021', '6363', 'o', 'E', 'a', 6921, 'e', 7497, 'Y', 'p', 451, 'f', 6413, 3785, 1601, 3193, 'i'], [9375, 2255, 'j', '4537', 'X', 'Z', '8981', 'W', 'u', '827', '4681', '2433', '3179', 'p', 'a', '4675', 'r', '3527', '3021', '6363', 'o', 'E', 'f', 'K']

A: 4537, X, Z, 8981, W, u, 827, 4681, 2433, 3179, p, a, 4675, r, 3527, 3021, 6363, o, E
****
Q: [8711, 8283, 5083, 'q', '2149', '8157', '4395', '9981', 'v', 'S', '6273', 'R', 'E', 'P', 'D', 'O', 'j', 1385], ['k', 8167, 'Z', 4879, 'x', '2149', '8157', '4395', '9981', 'v', 'S', '6273', 'R', 'u', 'q', 5307, 2381]

A:
2149, 8157, 4395, 9981, v, S, 6273, R
****