In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2513, 2591, 'Y', 'B', '1337', '8217', 'D', 'n', 'w'], [4485, 3093, 289, 'Y', 'B', '1337', '8217', 'w', 6103, 'M']