In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1987, 2571, 'S', 3415, 'X', 1067, 'l', 1207, 2783, '9849', '9517', '6533', '7083', '3007', 'y', '5069', 'f', 'p', '2085', '8279', 'X', 'Z', 'k', 3845, 'D', 2057], ['p', 8663, 'm', 6533, '9849', '9517', '6533', '7083', '3007', 'y', '5069', 'f', 'p', '2085', '8279', 'X', 'm', 'b', 'U', 'b', 9575, 2061, 8493, 'i']