In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['m', 'z', 'F', 'o', '1799', 'A', 'm', 'C', 'f', 'N', 'H', 'S', 387, 601], [6865, 45, 1933, 'L', 7729, 'o', '1799', 'A', 'm', 'C', 'f', 'N', 'H', 'M', 'w', 5243, 'g', 'g']