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

Q: ['X', 1863, 6105, 'n', 8419, 6469, 'u', 'p', '1641', '1413', '6389', '7069', '1333', 'q', '9609', 'D', '843', '2667', '223', '6689', 'B', 9885], ['l', 'L', 'S', 'p', 'j', '1641', '1413', '6389', '7069', '1333', 'q', '9609', 'D', '843', '2667', '223', '6689', 'F', 5539, 'C', 1383, 'n', 9991]

A: 1641, 1413, 6389, 7069, 1333, q, 9609, D, 843, 2667, 223, 6689
****
Q: [9317, 'w', 4993, 's', 'm', '6813', 'w', '1303', '849', 'k', '6253', '6957', '8725', '6917', 'f', '1977', '6293', '2107', 'Z', '3307', 't', '2617', 'D', 'b', 'l', '8713', 'P', 'C', 'T', 'n', 'm', 3279, 'p', 5809, 'R', 103, 'q', 7037], ['w', 'y', 1757, 'P', 5339, 'v', 2295, 'J', 'D', 6391, 4415, 3971, 2739, 's', 'm', '6813', 'w', '1303', '849', 'k', '6253', '6957', '8725', '6917', 'f', '1977', '6293', '2107', 'Z', '3307', 't', '2617', 'D', 'b', 'l', '8713', 'P', 'C', 'T', 't', 583, 2855, 'n', 't', 7281, 5103, 'E', 3181, 3639, 'G', 'c', 4007, 'H', 'v', 8375, 'j', 'I', 'r', 'l', 9621, 'X', 1885, 4309]

A: s, m, 6813, w, 1303, 849, k, 6253, 6957, 8725, 6917, f, 1977, 6293, 2107, Z, 3307, t, 2617, D, b, l, 8713, P, C, T
****
Q: ['G', 'W', 5569, 'L', 'i', 'g', 8271, 2071, 'Z', 7011, 'M', 'Y', '1723', 'i', 'z', 'Z', '3571', 'S', 'g', '7651', '2165', '4931', 'Z', 'A', 1115, 6545], ['F', 'G', 'u', 5089, 'h', 'M', 'Y', '1723', 'i', 'z', 'Z', '3571', 'S', 'g', '7651', '2165', '4931', 'Z', 'B', 8549]

A:
M, Y, 1723, i, z, Z, 3571, S, g, 7651, 2165, 4931, Z
****