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

Input: Consider Input: ['r', 'X', 7017, 'D', 2235, 'p', 'i', 3287, 'z', '9245', 'S', '8055', '1843', '147', '4353', '9543', '9247', '6361', '609', 'v', 'z', '4349', 'd', '6611', '5101', 'G', 'W', 4175, 5695, 'r', 9809, 8187, 'G'], [8989, 2959, 7907, 'F', 2481, 'Q', 9095, '9245', 'S', '8055', '1843', '147', '4353', '9543', '9247', '6361', '609', 'v', 'z', '4349', 'd', '6611', '5101', 'G', 'g', 5163, 'B', 2487, 'r', 'j', 'l', 293, 'Z']

Output: 9245, S, 8055, 1843, 147, 4353, 9543, 9247, 6361, 609, v, z, 4349, d, 6611, 5101, G


Input: Consider Input: [7231, 2153, '3257', '3693', 'P', 3291], [1543, 6411, '3257', '3693', 'G', 'k']

Output: 3257, 3693


Input: Consider Input: ['I', 'o', 3777, 6567, 't', 'y', 'W', 515, 2707, 1845, 9633, 6091, 3059, 6229, 983, 4897, '2883', '1365', '1453', 'G', '5845', 'W', 'O', '9383', '721', '3799', '9989', '3043', '4697', 'i', 'M', '3745', 'g', '9293', 'K', 'N', 'K', 'V', 'N', 'O'], ['f', 'T', 7529, 's', 855, 951, 'B', 'l', 'G', 'B', 2621, 'M', 5401, 3303, 2979, 5713, 'C', '2883', '1365', '1453', 'G', '5845', 'W', 'O', '9383', '721', '3799', '9989', '3043', '4697', 'i', 'M', '3745', 'g', '9293', 'K', 'N', 'b', 3293, 9713, 'S']


Output: 2883, 1365, 1453, G, 5845, W, O, 9383, 721, 3799, 9989, 3043, 4697, i, M, 3745, g, 9293, K, N