In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['O', 39, '517', 'x', 'w', 'j', '8287', 'T', '5149', 'F', 3545, 'G', 5585, 9859, 1291, 3153], [3069, 5267, 7325, 'L', 9013, 689, '517', 'x', 'w', 'j', '8287', 'T', '5149', 'n', 6795, 'i', 'K', 'B', 'c']