In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['l', 581, 4659, 2559, 'f', 'S', '1219', '6225', '515', '5369', 'w', 'V', 7431, 6195, 1731, 'J', 9541], [8813, 7733, 'n', 'a', 'h', 981, 'S', '1219', '6225', '515', '5369', 'w', 'q', 'A', 'U', 'J']