In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['O', 'n', 'J', 'w', '3049', '2247', 'K', 'b', 1401], [1471, 1385, 6017, 'L', 'w', '3049', '2247', 'K', 'J', 5417, 'o', 'e']