In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2357, 'k', 1225, 5899, '1245', '9475', 'O', '4415', '2671', 'o', 'X', '9009', 'n', 'a', 5975, 'E', 8259, 'p'], [5307, 8815, 'J', 5857, 3477, 8865, 2217, 'Y', 'D', '1245', '9475', 'O', '4415', '2671', 'o', 'X', '9009', 'n', 'N', 'f', 'V']