In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 'I', 'A', 'M', 7107, '4019', '135', 'I', 'z', '3163', 'l', 'C', 2653, 1251, 1807, 'w', 'J'], [7095, 'j', 3895, 'x', '4019', '135', 'I', 'z', '3163', 'l', 'N', 'h', 9629, 'N']