In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['I', 'm', 'Y', 1651, 'p', 7417, 'g', '6615', 'J', 'j', '8741', '5287', 'm', 'E', 'Q', 'e', 9875, 9703, 'D', 'O'], ['M', 'Y', 'g', '6615', 'J', 'j', '8741', '5287', 'm', 'b', 5927, 'N', 'G', 'l', 9519]