In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['P', 3969, 'e', 'a', 2427, 'w', 'a', 2211, 3591, 2739, 'T', 'p', 'N', '961', 'a', '1561', 'W', 'Z', 'G', 'e', 'C', 'q', '3419', 'v', 7729, 'E', 'J', 2119, 'j', 8829, 'k', 'M', 'Y', 2511], ['d', 8339, 'p', 'w', 5601, 'Z', 'p', 6373, 'N', 5733, 9035, 'p', 'N', '961', 'a', '1561', 'W', 'Z', 'G', 'e', 'C', 'q', '3419', 't', 2969, 'G', 'q', 'B', 9191, 5931, 7435]