In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7493, 'J', 4325, 'P', 'H', 'e', 1023, 'g', 'u', '7627', 'f', 'n', '5627', 'f', '975', 'E', '8177', '1733', '4161', '5251', 'M', 'm', '7981', 'w', 'K', 'B', 1977, 783], ['I', 519, 't', 495, 'N', '7627', 'f', 'n', '5627', 'f', '975', 'E', '8177', '1733', '4161', '5251', 'M', 'm', '7981', 'L', 3087, 'z']