In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['l', 's', 'n', '5757', '399', '1195', '2769', 'A', '3907', 'W', 'J', 679, 'W', 9831], [605, 8975, 'k', 6509, 'n', '5757', '399', '1195', '2769', 'A', '3907', 'W', 'h', 2243, 1315, 4911, 'N', 3139, 3717]