In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['H', 5303, 7231, 1, 'l', 'm', 'o', '1035', '1449', 'Q', 'e', 'I', 'c', 'f', 3983, 'J', 'm'], [5487, 'O', 6127, 'B', 'G', 'Z', 1987, 'l', 'm', 'o', '1035', '1449', 'Q', 'e', 'I', 'y', 'f']