In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 9487, 1483, 'K', 'L', 5305, 'm', 'R', 'w', 'M', '5227', 'y', '5111', 'b', 'H', '3885', 'J', 'n', 1695, 4821, 3051, 'c', 7535], ['e', 3585, 'm', 'm', 'R', 'w', 'M', '5227', 'y', '5111', 'b', 'H', '3885', 'J', 'g', 'D', 5451, 'x', 'I', 3007, 5799, 6179, 'h']