In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['n', 1263, 'A', 'l', 'I', 5671, 3927, 'J', 1881, 'h', 'N', 5147, '5831', '3529', 'p', 'E', '8265', 'q', '6199', '5805', 'Q', 'i', '6761', '8913', '9449', 'm', 'Y', 'n', '1499', 'x', 'o', '8003', '577', '5735', 'D', 3685], [9819, 4945, 'Y', 9993, 'o', 7139, 'H', 'k', 3691, 9105, 3031, 3257, 8531, 'F', 'C', 6845, 'S', 7593, 'b', 7157, 7179, '5831', '3529', 'p', 'E', '8265', 'q', '6199', '5805', 'Q', 'i', '6761', '8913', '9449', 'm', 'Y', 'n', '1499', 'x', 'o', '8003', '577', '5735', 'i', 'c', 7503, 7001, 'G', 'c', 9085, 3765, 'X']
A:
5831, 3529, p, E, 8265, q, 6199, 5805, Q, i, 6761, 8913, 9449, m, Y, n, 1499, x, o, 8003, 577, 5735