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

[Q]: [8711, 'f', 8715, 7649, 4967, '5867', 'i', '6567', 'R', '6087', '2945', 'J', 'j', 9099, 6331], ['a', 'T', 'n', 4869, '5867', 'i', '6567', 'R', '6087', '2945', 'M', 3125, 'D', 3835]
[A]: 5867, i, 6567, R, 6087, 2945


[Q]: [6423, 'w', 'K', 'm', 'S', 'X', '8857', 'r', '9809', 'a', 'g', '7297', 'H', 'Q', 'W', 'I', 'm', '3277', 'm', 'W', 'L', 'H', 'S', 'X', 'y', 2479, 'p', 'B', 7193, 8327, 'X', 8547, 2261, 'X', 477, 535, 'w', 'f', 2923], [5389, 6751, 'F', 'l', 9579, 'A', 'S', 'X', '8857', 'r', '9809', 'a', 'g', '7297', 'H', 'Q', 'W', 'I', 'm', '3277', 'm', 'W', 'L', 'H', 'O', 't', 8821, 'H', 3919, 7667, 'x', 'v', 4035, 3179, 9235, 5679, 'c', 'P']
[A]: S, X, 8857, r, 9809, a, g, 7297, H, Q, W, I, m, 3277, m, W, L, H


[Q]: ['e', 451, 'B', 'U', 'j', '8241', '4441', 'T', 'j', '3907', 'S', '9313', 'H', '3587', '2811', '7209', 'A', '6367', '6635', '9249', 'B', 1013, 'w', 'H', 'T', 2263, 'A', 'P', 'D', 'O'], [247, 5585, 'Q', 'n', 7427, 2821, 2563, 'B', 8007, 4627, 5781, 'z', 'j', '8241', '4441', 'T', 'j', '3907', 'S', '9313', 'H', '3587', '2811', '7209', 'A', '6367', '6635', '9249', 'Y', 'p', 'e', 'l']
[A]:
j, 8241, 4441, T, j, 3907, S, 9313, H, 3587, 2811, 7209, A, 6367, 6635, 9249