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

[Q]: ['d', 6171, 9855, 'D', 'e', '299', 'y', 'U', 'n', 'x', 'f', 2817, 7263, 2945, 'h'], [5759, 2135, '299', 'y', 'U', 'n', 'x', 'g', 2571, 'd']
[A]: 299, y, U, n, x

[Q]: ['x', 9249, 'X', 'o', '7637', 'q', 'S', '733', '1483', 'T', '7653', 'F', '7879', 'k', '1881', 'Q', 'J', '4517', 'n', 'q', '1919', '381', '4725', 'J', 10001, 'A', 225, 1607, 'a', 'h', 6377], [375, 'D', 4093, 'g', 735, 955, 'c', 9937, 2987, 7035, 'X', 7703, 9937, 'Y', 3849, 2197, 4731, 'X', 'o', '7637', 'q', 'S', '733', '1483', 'T', '7653', 'F', '7879', 'k', '1881', 'Q', 'J', '4517', 'n', 'q', '1919', '381', '4725', 'Y', 'K', 's', 1667, 9723, 3697, 1759, 3243, 'r', 'v', 'Z']
[A]: X, o, 7637, q, S, 733, 1483, T, 7653, F, 7879, k, 1881, Q, J, 4517, n, q, 1919, 381, 4725

[Q]: ['G', 4047, 2135, 6285, 'n', 'O', 9193, 'j', 8653, 'n', 'F', 'o', 'm', '4895', '87', '2291', 'r', '3217', '2355', 'H', 'W', '9841', 't', 'j', '5545', 'z', 'J', '849', 'B', 9105, 'r', 'L', 6259, 1289, 5551], ['L', 8261, '4895', '87', '2291', 'r', '3217', '2355', 'H', 'W', '9841', 't', 'j', '5545', 'z', 'J', '849', 'w', 8831]
[A]:
4895, 87, 2291, r, 3217, 2355, H, W, 9841, t, j, 5545, z, J, 849