In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9513, 'Y', 7505, 'f', 'B', 'U', 6871, 'S', 'L', 'm', '5861', 'S', 'z', 'P', '6837', 'f', 7059, 'C', 'x', 'q', 'u'], ['G', 'j', 9925, 'r', 'S', 'L', 'm', '5861', 'S', 'z', 'P', '6837', 'M', 7741, 'i', 'o', 'A', 2165, 'a']