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

Input: Consider Input: ['E', 'P', 'Z', '8337', 'L', '4245', 'M', 'M', 'H', '4531', 'B', 'p', '6961', 'x', 9461, 2587], [9027, 289, 2515, 'k', 'N', 'i', 9689, '8337', 'L', '4245', 'M', 'M', 'H', '4531', 'B', 'p', '6961', 'r', 'x', 737, 'a', 'w', 'K', 'S']

Output: 8337, L, 4245, M, M, H, 4531, B, p, 6961


Input: Consider Input: ['X', 'U', 'Z', 9489, '4623', 'M', 'd', '5977', '7669', '8583', '2455', 'D', 'j', 'c', 'U', 'p', 'R', 609, 4535, 4269, 8941, 'I', 2091, 'Q'], [3721, 8573, 8821, 6095, 1215, 1195, '4623', 'M', 'd', '5977', '7669', '8583', '2455', 'D', 'j', 'c', 'L', 'm', 'q', 'j', 697, 3367, 'R']

Output: 4623, M, d, 5977, 7669, 8583, 2455, D, j, c


Input: Consider Input: ['n', 5883, 'X', 5457, 'f', 6771, 'F', '2507', 'F', 'z', 'D', '9535', 'h', 3331], [981, 'L', 9679, 'w', 'K', 'F', '2507', 'F', 'z', 'D', '9535', 'l', 'i']


Output: F, 2507, F, z, D, 9535