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

Input: Consider Input: ['U', 6489, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'I', 'B', 'R', 'N', 9533, 'd'], ['U', 4287, 'f', 'R', 1407, 3893, 6739, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'Z', 2981, 'i', 'a', 'k', 5909, 'S', 9997]

Output: o, e, Z, G, 8175, r, 1915, 8587, 8845


Input: Consider Input: ['t', 7533, 7349, 'a', 2529, 'O', 2575, 6661, 6673, 'E', '9183', '7823', 'a', '9601', '3167', '7973', 't', 'B', 'T', 'k', 'z', 'J', 'M', 'Z', 'd', 'S', 181, 'G', 'C', 2881, 'a'], ['g', 3651, 3051, 7741, 'r', 5683, 'J', 'A', 's', 'D', 'y', 'R', '9183', '7823', 'a', '9601', '3167', '7973', 't', 'B', 'T', 'k', 'z', 'J', 'M', 'e', 'x', 'A', 1469, 'v', 5763, 'f', 'g']

Output: 9183, 7823, a, 9601, 3167, 7973, t, B, T, k, z, J, M


Input: Consider Input: ['P', 415, 'v', 'q', 8451, 5847, 8729, 'S', 1583, 'D', 6785, '6503', 'L', 'y', '3027', '1033', '9941', '6179', 'F', '2125', '7341', '6923', 'F', 'T', 'y', 135, 'r'], ['I', 7291, 5661, 'e', 'X', '6503', 'L', 'y', '3027', '1033', '9941', '6179', 'F', '2125', '7341', '6923', 'v', 639, 'g', 3727, 'Q', 'k', 3799, 2879, 6595, 9701]


Output: 6503, L, y, 3027, 1033, 9941, 6179, F, 2125, 7341, 6923