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

Q: [1307, 'u', 'Z', 3323, 191, 'i', 'h', 't', 'L', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'C', 'M', 'y', 'h', 7985, 9989, 'j'], [2817, 1955, 2973, 'Y', 9221, 'z', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'G', 'M', 2083, 'O']

A: 8549, 7861, 9747, 3985, g, r, 1247, R, S, a, a, 749
****
Q: ['n', 137, 'q', 'Q', 10017, 2119, 'g', 8921, 'L', 'A', 'c', 'U', 7067, 'P', '7789', 'O', 'H', 'h', 'T', 'C', '9427', 'b', '4887', '7659', 'i', 'q', '8123', '7571', '8653', '4961', 'W', 'K', '6323', 'm', '9669', '4821', '6503', 'M', 'N', 4975, 'w', 4937, 9409, 2427, 'n', 7733, 'o', 3717, 141, 'e', 'z', 'X', 'c', 'q', 6443, 'W', 'Q', 'j', 7043, 1977], ['I', 9, 5027, 3147, 1945, 6141, 'u', 2685, 2253, 8359, 'z', 4431, 8465, 3145, 'k', '7789', 'O', 'H', 'h', 'T', 'C', '9427', 'b', '4887', '7659', 'i', 'q', '8123', '7571', '8653', '4961', 'W', 'K', '6323', 'm', '9669', '4821', '6503', 'M', 'B', 'N', 8081, 'W', 'H', 'A', 'w', 'j', 661, 'D', 8029, 49, 'y', 6639, 829, 771, 9575, 7371]

A: 7789, O, H, h, T, C, 9427, b, 4887, 7659, i, q, 8123, 7571, 8653, 4961, W, K, 6323, m, 9669, 4821, 6503, M
****
Q: [1401, 3529, 2723, 'y', 3275, 3339, 'M', 'P', 2143, 'F', 'c', 295, '795', '3059', '8735', '7397', 'J', '5583', '2265', 'n', 'j', '3013', 'u', '8877', 'l', 'W', 'q', 'D', 9413, 'I', 'z', 'i', 'w'], ['C', 'Z', 8297, 3311, 'B', 7259, 1059, 'L', 1161, 'H', 351, '795', '3059', '8735', '7397', 'J', '5583', '2265', 'n', 'j', '3013', 'u', '8877', 'l', 'W', 'j', 2027, 'q']

A:
795, 3059, 8735, 7397, J, 5583, 2265, n, j, 3013, u, 8877, l, W
****