You will be given a definition of a task first, then some input of the task.
In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

[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