In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['m', 2835, 'j', 'd', '2589', '1713', '4177', 'Q', 2739], [6681, 9259, 'f', 'n', 1531, 'j', 'd', '2589', '1713', '4177', 'c', 2617, 'A', 6955]