In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7461, 'E', '367', 'B', 'q', 'Y', 'n', '1575', 'Q', 'o', 'X', 'J', 4387, 'P', 'S', 'l', 'U', 5955], [9165, 6599, 8315, 9315, '367', 'B', 'q', 'Y', 'n', '1575', 'Q', 'o', 'Y', 'R', 8631, 8355, 7037, 3015]