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

['n', 'q', 'X', 1289, 4857, 'G', '6085', '8355', '75', '8367', 'Y', '4951', 'p', 7613, 7173, 3355, 'A', 1547, 'm'], [567, 1997, 'w', 4913, 'G', '6085', '8355', '75', '8367', 'Y', '4951', 'B', 'X', 6261, 'S']
G, 6085, 8355, 75, 8367, Y, 4951