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

Input: Consider Input: [2787, 'N', 'I', 'M', 'x', '3825', 'r', '1041', 'y', 'a', 'v', 6057], ['F', 6523, 'x', '3825', 'r', '1041', 's', 'C', 3001, 8425]

Output: x, 3825, r, 1041


Input: Consider Input: ['p', 9773, 'Y', 'o', 'w', 's', '583', 'e', '2773', '9925', '8535', 'M', '9831', 'V', 'q', 'S', 5087, 'M', 7601, 'D'], [7787, 'l', 'o', 'w', 's', '583', 'e', '2773', '9925', '8535', 'M', '9831', 'V', 'q', 'X', 'W', 3163, 'f', 5201]

Output: o, w, s, 583, e, 2773, 9925, 8535, M, 9831, V, q


Input: Consider Input: ['v', 6649, 1227, 'P', 'h', 'X', 'T', 9205, 9037, 'm', 'c', 'w', 1405, 4753, 'v', 5789, '1729', 'h', '1957', 'k', 'I', '2143', 'O', '7191', '5797', '7289', '3895', 'p', '4715', 'X', '3813', '9643', 'T', '7843', '5685', 'R', 'm', 697, 'R', 9393, 9263, 4429, 4345, 677, 'L', 8981, 'y', 'Z', 'm'], ['n', 'q', 'r', 'D', 'S', 'W', 'u', 'O', 'T', 9123, 4549, 'd', 2571, 4725, 'd', '1729', 'h', '1957', 'k', 'I', '2143', 'O', '7191', '5797', '7289', '3895', 'p', '4715', 'X', '3813', '9643', 'T', '7843', '5685', 'E', 'N', 8083, 2547, 'L', 7839, 'S', 1737, 'r', 8827, 'b', 3267, 4009, 2719]


Output: 1729, h, 1957, k, I, 2143, O, 7191, 5797, 7289, 3895, p, 4715, X, 3813, 9643, T, 7843, 5685