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

Input: Consider Input: [6507, 8623, 6879, '1327', '6971', 'd', 'A', 3663, 7831], [1711, 4751, 3479, '1327', '6971', 'd', 'u', 1771]

Output: 1327, 6971, d


Input: Consider Input: ['r', 'g', '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'G', 'N', 2585], ['X', 5347, 'M', 'Z', 4615, '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'P', 'o']

Output: 997, n, 631, 527, E, A, n, n, G, 1197, R, L


Input: Consider Input: ['f', 6631, 'm', 3911, 'k', 5241, 'l', 5345, 2175, 9821, 1935, 2559, 4527, 1689, '4369', '9343', '619', '3945', '5925', '8053', 'y', '5277', '3687', '2971', 'g', '9413', '6269', 'j', 'r', 'r', '5753', 'h', '1337', 'h', 'm', 'm', '5167', 'd', 6871, 707, 'W', 8139, 'n', 'd', 2623, 3227, 'M', 8053, 'D', 4491, 'j', 9143], [6717, 'Z', 5949, 4405, 6001, 'j', 7723, 'k', 7597, 'i', 'G', 6471, 3235, 'e', 'e', '4369', '9343', '619', '3945', '5925', '8053', 'y', '5277', '3687', '2971', 'g', '9413', '6269', 'j', 'r', 'r', '5753', 'h', '1337', 'h', 'm', 'm', '5167', 'N', 1727, 'S', 2615, 4217, 'U', 'O', 9721, 'j', 3223, 'q', 'x', 'x', 7923]


Output: 4369, 9343, 619, 3945, 5925, 8053, y, 5277, 3687, 2971, g, 9413, 6269, j, r, r, 5753, h, 1337, h, m, m, 5167