In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 's', '1465', 'C', 'y', 'X', 'O', 'L', 3371, 'b', 'S'], [1231, 'h', '1465', 'C', 'y', 'X', 'O', 'Q', 6141]