In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['X', 'P', 'D', '8945', '1215', 'F', 'D', 'D', 'a', '2365', 'K', 'S', 'G', 'b', '311', '229', 'C', '1335', '9623', 'r', 5533, 1605, 25, 'K', 753, 'Q', 4657, 'C', 6709, 'Q', 'R'], ['m', 'E', 5179, 2461, 'B', 3871, 9233, 3241, 'o', 1699, 'i', 951, 'T', 'Q', 'b', 'G', 3055, 'D', '8945', '1215', 'F', 'D', 'D', 'a', '2365', 'K', 'S', 'G', 'b', '311', '229', 'C', '1335', '9623', 'y', 3667, 'U', 5555, 5087, 'd']