In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: [6529, 'I', 'B', 'X', 'Q', 'p', 9397, 6877], [2763, 8007, 'B', 'X', 'Q', 'J', 8429, 2271]
A:
B, X, Q