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

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: [7409, 'l', 'h', '6739', '5187', 'K', 'D', '7539', '5609', 'x', 'p', 'S', 'j', 'j', '3077', '6081', 'd', '61', '2871', 's', 'J', 'M', 'Q', 'R', 5567, 'p', 'L'], [2329, 5573, 'N', 't', 3213, 9107, 9337, 79, 1607, 'J', 'y', 'g', 's', 'h', 4251, 'L', 3147, '6739', '5187', 'K', 'D', '7539', '5609', 'x', 'p', 'S', 'j', 'j', '3077', '6081', 'd', '61', '2871', 's', 'x', 'Q']

Output: 6739, 5187, K, D, 7539, 5609, x, p, S, j, j, 3077, 6081, d, 61, 2871, s


Input: Consider Input: ['u', 9543, 5771, 5687, '5957', 'Z', '541', 'u', 'X', 'c', '5225', 'P', 'Q', '4997', '1865', 's', 2467, 8719, 'X', 'b'], [1367, 6367, 'Z', 'm', 5863, 8805, 5877, 'C', 8351, 'C', 'o', '5957', 'Z', '541', 'u', 'X', 'c', '5225', 'P', 'Q', '4997', '1865', 'T', 8025, 167, 'v', 7471, 6891]


Output: 5957, Z, 541, u, X, c, 5225, P, Q, 4997, 1865