Detailed Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['d', 7867, 185, 261, 'H', 'X', 'j', 'O', 7805, 5991, '6109', 'Y', 'm', '7631', '2607', 'B', 'S', 'w', 'a', 'X', '2119', '5453', '4145', '9015', 'I', '8185', 'p', '8435', '5559', '7511', '2191', '7173', '3853', '4583', 'K', 'c', 9249, 6119, 5751, 'I', 1271, 8563, 'y', 'o', 'q', 7437, 925, 9587, 'v', 'R', 'm'], ['y', 'K', 8237, 5233, 9119, 'g', 7475, 1243, 't', 6377, '6109', 'Y', 'm', '7631', '2607', 'B', 'S', 'w', 'a', 'X', '2119', '5453', '4145', '9015', 'I', '8185', 'p', '8435', '5559', '7511', '2191', '7173', '3853', '4583', 'K', 'X', 'm', 'j', 'C', 'b', 7483, 4307, 'u', 'I', 6321, 'k', 3195, 'x', 2343, 'S', 'Z']
A:
6109, Y, m, 7631, 2607, B, S, w, a, X, 2119, 5453, 4145, 9015, I, 8185, p, 8435, 5559, 7511, 2191, 7173, 3853, 4583, K