In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9509, 4937, 'X', 'E', 'z', 'z', '7853', 'e', 'J', 327, 'S', 'x', 9957], [9481, 125, 'G', 5315, 4667, 'E', 'z', 'z', '7853', 'e', 'q', 1545, 'b', 'S']