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

Q: [1249, 4091, 'E', 483, 'O', 8427, '5009', 'X', 'Q', '107', 'F', '6119', '4479', 'u', 'o', 'U', '4405', '1737', 'K', 'j', 'B', 'U', 2857, 's'], ['J', 'B', 8825, 9581, '5009', 'X', 'Q', '107', 'F', '6119', '4479', 'u', 'o', 'U', '4405', '1737', 'K', 'j', 'B', 'E', 'e', 'R', 'X', 1739, 'D', 1385, 'e', 6969]

A: 5009, X, Q, 107, F, 6119, 4479, u, o, U, 4405, 1737, K, j, B
****
Q: ['x', 653, 8793, 'W', 1845, 'Y', 6363, 9757, '9605', 'U', '1913', '2991', '7131', '237', '7023', 'j', '2123', 'B', '1887', 'K', '3729', 'D', '8391', '9729', 'w', 'k', 'M', '6957', 'J', 703, 'F', 'X', 'x', 7483], ['q', 10017, 5483, 8675, 'w', 'F', 'D', '9605', 'U', '1913', '2991', '7131', '237', '7023', 'j', '2123', 'B', '1887', 'K', '3729', 'D', '8391', '9729', 'w', 'k', 'M', '6957', 'n', 7147, 7131, 'q', 'u', 'A', 1171, 'V', 'k', 'N', 6869]

A: 9605, U, 1913, 2991, 7131, 237, 7023, j, 2123, B, 1887, K, 3729, D, 8391, 9729, w, k, M, 6957
****
Q: ['W', 'u', 7263, 7781, 'm', 9717, 'c', 4941, 'j', 'y', 'D', '9835', 'U', '3395', 'p', '9625', 'n', '9985', 'Q', '8101', 'Z', 'D', 'X', 'D', '4249', 'H', '4851', '9365', '8223', 'Z', '4053', 'p', '6665', '8373', '657', '311', '8855', 'L', 3043, 'p', 9579, 2533, 8545, 489, 6919, 'Z', 6035, 'L', 'U', 'g', 'G', 'Y', 'q', 9847, 'o', 3417, 'g', 8897, 'T', 3601, 'k', 'B', 4873, 'M', 9359], ['c', 6143, 8435, 5473, 'r', 'm', 5671, 5553, 'C', 9113, 1063, 2823, 1459, 9587, 'j', 'y', 'D', '9835', 'U', '3395', 'p', '9625', 'n', '9985', 'Q', '8101', 'Z', 'D', 'X', 'D', '4249', 'H', '4851', '9365', '8223', 'Z', '4053', 'p', '6665', '8373', '657', '311', '8855', 'W', 'Z', 3513, 'O', 'l', 1681, 'i', 8703, 'u', 'X', 4539, 'R', 3775, 'h', 8981, 'L', 9561, 9977]

A:
j, y, D, 9835, U, 3395, p, 9625, n, 9985, Q, 8101, Z, D, X, D, 4249, H, 4851, 9365, 8223, Z, 4053, p, 6665, 8373, 657, 311, 8855
****