In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9559, 'n', 6151, 8207, '5177', 'X', '2413', '1935', '5469', '947', 'w', 'g', 'w', 'g'], ['I', 'L', 'k', '5177', 'X', '2413', '1935', '5469', '947', 'D', 6411, 9579, 7337]