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: [8409, 4833, '3743', '7709', '4991', '1023', 'z', 'T', 9821, 'v', 'S', 2959], [2565, 6315, 'm', '3743', '7709', '4991', '1023', 'z', 'V', 'K', 'h', 'e']

Output: 3743, 7709, 4991, 1023, z


Input: Consider Input: ['d', 'Y', 3123, 'c', '6487', '6665', 'z', 's', 'E', 't', 'T', 'u', 'j', '7593', 'r', '51', '2525', '1129', 'Y', '2331', '9711', 'k', 3511, 4287, 1449, 'S', 4669, 2303, 7421, 3311, 'N', 'D', 9771, 7549, 1831, 3657, 5593], ['B', 'f', 6605, 'G', 'j', 'y', 6565, 'o', 'I', 8913, 'Y', '6487', '6665', 'z', 's', 'E', 't', 'T', 'u', 'j', '7593', 'r', '51', '2525', '1129', 'Y', '2331', '9711', 'w', 2291, 1529, 'p', 9653, 'N', 'I', 5381, 8623, 701, 'D', 'G']


Output: 6487, 6665, z, s, E, t, T, u, j, 7593, r, 51, 2525, 1129, Y, 2331, 9711