In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 'u', 6437, 'q', 'V', '5093', 'F', 'I', 'E', '8417', 'N', 'I', 'n', 'k', 7249], [7865, 'a', 7475, '5093', 'F', 'I', 'E', '8417', 'J', 6851]