In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Input: Consider Input: [5639, 'n', 'J', '9525', 'B', 'o', 's', 'P'], ['t', 893, 4667, '9525', 'B', 'o', 7501, 'z', 6255]

Output: 9525, B, o


Input: Consider Input: ['n', 'E', '2891', '7537', 'Q', 'J'], [2247, 10017, '2891', '7537', 'e', 1001]

Output: 2891, 7537


Input: Consider Input: ['S', 'W', 'w', 'S', 'm', 6727], ['r', 1857, 'w', 'S', 'F', 1171]


Output: w, S