In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Q', 'O', 3231, 4597, 3425, 171, '9435', '7411', 'w', '6265', '8489', '9587', '5445', 'Q', '303', 'M', 'x', '4823', 'E', 'r', 5849, 'e', 17, 'C', 1465], [1213, 3357, 'j', 'r', 8937, 'B', 'x', 9159, 2813, '9435', '7411', 'w', '6265', '8489', '9587', '5445', 'Q', '303', 'M', 'x', '4823', 'E', 'a', 'a', 'm']