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

Input: Consider Input: ['g', 305, '8447', 'K', 'y', 'D'], [2445, 5519, '8447', 'K', 't', 'l']

Output: 8447, K


Input: Consider Input: [605, 'W', 7189, 'X', '7897', '5823', 'P', '9001', 'J', 'r', 2595], ['z', 'W', '7897', '5823', 'P', '9001', 'J', 'Z', 'w']

Output: 7897, 5823, P, 9001, J


Input: Consider Input: [8391, 'B', 'U', 981, 3225, 2441, 461, 8479, 2663, 'Y', 5935, 'K', 'n', 1469, 6203, 'q', 8771, 7703, 'Q', 9467, 'M', 'l', 'C', 2561, 7945, 1733, 1955, 'O', 'h', '2885', '6815', '1419', '6525', 'N', 'P', '4401', 'k', 'E', 'g', 'A', '7667', '2545', 'R', '4919', 'y', '6109', '8093', 'X', 'r', 'x', 'o', '3297', 'K', 'P', '2955', 'P', 7953, 6859, 'F', 8413, 8799, 793, 'N', 9077, 'C', 'k', 'T', 'i', 'U', 1429, 'M', 2785, 's', 'C', 4935, 3995, 'T', 'l', 4249, 'C', 'D', 375], [5715, 'p', 'i', 2271, 2549, 6455, 3661, 5213, 'O', 'h', '2885', '6815', '1419', '6525', 'N', 'P', '4401', 'k', 'E', 'g', 'A', '7667', '2545', 'R', '4919', 'y', '6109', '8093', 'X', 'r', 'x', 'o', '3297', 'K', 'P', '2955', 'M', 7357, 'Y', 2491, 'D', 't', 239, 5661, 9933, 'u', 4827, 'w', 'X', 'l', 'P', 'S', 8203]


Output: O, h, 2885, 6815, 1419, 6525, N, P, 4401, k, E, g, A, 7667, 2545, R, 4919, y, 6109, 8093, X, r, x, o, 3297, K, P, 2955