In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Z', 'M', 'g', 641, 581, 'g', 'O', '1843', '1943', '977', 'G', 'F', 'n', 'H', 'a', '3893', '7255', 'j', '2373', '9217', '7907', '8335', 'G', 5515, 3569], [6587, 7953, 5967, 'E', 'm', 'h', 'u', 8307, 'Q', 'M', 'u', '1843', '1943', '977', 'G', 'F', 'n', 'H', 'a', '3893', '7255', 'j', '2373', '9217', '7907', '8335', 'm', 3045, 3851, 'V', 1575]