In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5801, 'I', 'u', 6357, 'j', 6731, 2169, 1377, 'X', 'J', 'Z', 'Y', 'C', 'B', '955', '6251', 'c', 'c', 'S', 'P'], ['J', 2777, 7535, 'W', 'j', 9403, 'X', 'J', 'Z', 'Y', 'C', 'B', '955', '6251', 'N', 's', 'i', 'B']