In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['a', 'c', 'p', '2195', 'P', 'e', '7585', 'T', '1109', '213', 'O', 'h', 27, 9031], [487, 6943, 'W', 2213, 'y', '2195', 'P', 'e', '7585', 'T', '1109', '213', 't', 5269]