In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['s', 4381, 4021, '2489', 'n', 'y', '8399', 'g', 'n', 'p', 6081], [9381, 'o', '2489', 'n', 'y', '8399', 'a', 9935]