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

Input: Consider Input: [7615, 3985, 'o', 1073, 5157, 5347, '7031', '7637', '6703', '7735', '8445', '9373', 'f', 'x'], [1247, 'x', 5707, 3649, 'g', 'z', '7031', '7637', '6703', '7735', '8445', '9373', 'h', 6317, 'T', 'M', 5703, 'h']

Output: 7031, 7637, 6703, 7735, 8445, 9373


Input: Consider Input: [5413, 'T', 'i', 'Q', 'Y', 'H', '2143', 'M', 'p', 'M', 'l'], ['Y', 'p', 'Y', 'H', '2143', 'M', 'A', 5017, 4553]

Output: Y, H, 2143, M


Input: Consider Input: [6623, 6869, '9481', '8735', '531', 'r', 'B', 1827], [135, 8865, 'L', '9481', '8735', '531', 'O', 'L']


Output: 9481, 8735, 531