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

Q: [9889, 'I', 'f', 'y', '3773', '4483', 'Y', '2325', 'M', '247', '8091', 'H', '3787', '3845', 'i', 'L', 't', '6949', '6019', '5929', 'm', 2573, 839, 'a', 'S', 9999, 'H', 135, 1089], ['Y', 'a', 9301, 'l', 'v', 'f', 'y', '3773', '4483', 'Y', '2325', 'M', '247', '8091', 'H', '3787', '3845', 'i', 'L', 't', '6949', '6019', '5929', 'Q', 9865, 7343, 741, 863, 'I', 'M', 'u']

A: f, y, 3773, 4483, Y, 2325, M, 247, 8091, H, 3787, 3845, i, L, t, 6949, 6019, 5929
****
Q: ['s', 1853, 'h', 'T', 'f', 'N', 'c', 643, 8659, 'E', 'v', 'A', 't', 779, 'S', 'p', 'A', '9745', '2013', 'o', '9115', 'Y', 'f', 'l', '9683', '4447', 'G', 'W', '3807', '6689', '3789', '9207', '4683', 's', '6555', '7405', 'F', '7739', '3145', '8895', '2515', 'X', 1613, 't', 'Q', 747, 'F', 9819, 7747, 7059, 509, 1169, 'z', 9807, 4297, 7399, 7009, 'z', 'L', 3495, 'c', 'l', 'd', 'A'], ['C', 4481, 'H', 3327, 7321, '9745', '2013', 'o', '9115', 'Y', 'f', 'l', '9683', '4447', 'G', 'W', '3807', '6689', '3789', '9207', '4683', 's', '6555', '7405', 'F', '7739', '3145', '8895', '2515', 'F', 'o', 'O', 2361, 9341]

A: 9745, 2013, o, 9115, Y, f, l, 9683, 4447, G, W, 3807, 6689, 3789, 9207, 4683, s, 6555, 7405, F, 7739, 3145, 8895, 2515
****
Q: ['F', 6521, 'q', 'g', 4303, 9075, 2177, 4691, 8623, 1493, 6737, '3935', '9877', '5943', 'V', 'h', '351', '2621', '3199', '8073', 'R', 'U', 'j', 'J', '8443', '3897', '1435', 'a', '3013', 'k', '7613', '5095', 'r', 'A', 'Q', 'X'], [2989, 7543, 's', 'O', 'R', 'y', 2023, 7797, 'y', '3935', '9877', '5943', 'V', 'h', '351', '2621', '3199', '8073', 'R', 'U', 'j', 'J', '8443', '3897', '1435', 'a', '3013', 'k', '7613', '5095', 'm', 2177, 6449, 5823]

A:
3935, 9877, 5943, V, h, 351, 2621, 3199, 8073, R, U, j, J, 8443, 3897, 1435, a, 3013, k, 7613, 5095
****