In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: [6905, 4377, 3675, 9399, 'p', 'D', 'K', 4191, 'p', 'T', 'e', '6245', 'C', 'X', '5125', '7563', 'T', 'b', 'h', '7217', 'W', '2573', '2055', 'j', 'p', '1843', '5989', '3305', 'C', 'j'], [1303, 6831, 'p', 'o', 'V', 5205, 7, 2957, 8521, 5907, 9225, 's', 7287, 8769, 'p', 'T', 'e', '6245', 'C', 'X', '5125', '7563', 'T', 'b', 'h', '7217', 'W', '2573', '2055', 'j', 'p', '1843', '5989', '3305', 'v', 'N', 's', 3605, 'H', 8169, 745, 'K', 'r', 'p', 'M']
A: 
p, T, e, 6245, C, X, 5125, 7563, T, b, h, 7217, W, 2573, 2055, j, p, 1843, 5989, 3305