In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2487, 7197, 'b', 'X', 'I', '3651', '615', 'v', 'x', 'X', 'z', 'e', 'G', 'D', 'N', 'F', 5285, 'D'], ['B', 'q', 9579, 'k', 'D', 'I', '3651', '615', 'v', 'x', 'X', 'z', 'e', 'G', 'D', 'N', 'P', 'U', 9193, 9975]