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

Input: Consider Input: ['N', 'z', 9641, 'z', 'f', 'o', 'L', 'D', 'w', 2793, 'b'], ['Q', 'R', 'z', 'f', 'o', 'L', 'A', 4343, 8711]

Output: z, f, o, L


Input: Consider Input: ['Y', 'Z', 'm', 'S', '3631', 'v', 'x', 5851, 615, 'm'], ['D', 'D', 'm', 'S', '3631', 'v', 'O', 'D']

Output: m, S, 3631, v


Input: Consider Input: ['g', 1987, '219', '5657', 'D', '8319', 'h', '2687', 'H', '6789', 'i', '2139', '5279', 'D', '5995', 'p', 'r', '3581', '2199', 'M', '2641', 'A', 'w', 'n', 53, 4241, 'H', 1531, 'z', 7541], [2607, 'P', 6693, 'K', 9703, 'x', 2175, 6403, 'S', 'h', 'Q', 1353, 6047, 'G', 'M', '219', '5657', 'D', '8319', 'h', '2687', 'H', '6789', 'i', '2139', '5279', 'D', '5995', 'p', 'r', '3581', '2199', 'M', '2641', 'A', 'm', 'L', 2387, 'B', 'u', 'p', 'B', 'q', 6845, 'O', 'z', 'i', 'n', 5227, 'x', 5749, 'c']


Output: 219, 5657, D, 8319, h, 2687, H, 6789, i, 2139, 5279, D, 5995, p, r, 3581, 2199, M, 2641, A