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

Q: ['X', 8541, 'z', 'A', '3985', '181', 'k', '6327', '4303', 'Q', '6295', 'i', 'b', 'A', 'h', 'f', '4947', 'N', '4649', 'S', '1957', '2921', '7817', 'i', 'r', 3095, 't', 'i', 5121, 2147, 'O', 4145, 1995, 'E', 'a'], ['g', 'v', 491, 'F', 'Q', 8013, 5789, 6119, 'p', 8193, 'G', 6543, 'n', 'f', 5239, 'z', 'A', '3985', '181', 'k', '6327', '4303', 'Q', '6295', 'i', 'b', 'A', 'h', 'f', '4947', 'N', '4649', 'S', '1957', '2921', '7817', 'i', 'y', 9617, 4351, 'X', 9425, 3497, 6049, 8113]

A: z, A, 3985, 181, k, 6327, 4303, Q, 6295, i, b, A, h, f, 4947, N, 4649, S, 1957, 2921, 7817, i
****
Q: [5625, 6017, 'd', 'p', '4423', '77', 'E', '5271', 'A', 1553, 'c'], ['U', 1615, 'u', 'd', 'p', '4423', '77', 'E', '5271', 'x', 'w', 'Y']

A: d, p, 4423, 77, E, 5271
****
Q: ['M', 't', 'N', 8961, 7157, 'd', 'b', 9055, 'a', '8231', 'A', '707', '1361', '4643', 'u', '5249', 'W', 'k', 2289, 1437, 'J', 'm', 9315], [9879, 'v', 8035, 6263, 8993, 3945, 'a', 'a', '8231', 'A', '707', '1361', '4643', 'u', '5249', 'c', 161]

A:
a, 8231, A, 707, 1361, 4643, u, 5249
****