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

Ex Input:
['d', 6171, 9855, 'D', 'e', '299', 'y', 'U', 'n', 'x', 'f', 2817, 7263, 2945, 'h'], [5759, 2135, '299', 'y', 'U', 'n', 'x', 'g', 2571, 'd']

Ex Output:
299, y, U, n, x


Ex Input:
[8431, 'L', 809, 'V', 3993, '5725', 'g', '1797', '8531', 'i', '1975', 'Y', 'U', '2979', 'E', '9345', 'T', 'O', 'o'], [9535, 4859, 4223, 9541, 8281, 'L', 'M', 'W', 'Q', '5725', 'g', '1797', '8531', 'i', '1975', 'Y', 'U', '2979', 'E', '9345', 'M', 7209, 7775, 'I', 'n', 'l', 7173, 'E', 'L', 'h']

Ex Output:
5725, g, 1797, 8531, i, 1975, Y, U, 2979, E, 9345


Ex Input:
['t', 'h', 2309, 'B', 'L', 1925, 'a', 'i', 'W', 3853, 'Q', 2977, 6985, 'c', 'O', 2667, 't', '2265', 'G', 'X', '2465', '5187', '5723', '9687', 'P', '2777', '2317', '1517', '4107', '8999', 'S', 'e', 'd', 'k', 'R', 'N', 3353, 589, 5237], ['H', 2767, 'o', 4423, 7271, 'H', 'N', 'h', 9955, 'V', 'E', 6371, 2767, 'Y', 3147, 'I', 't', '2265', 'G', 'X', '2465', '5187', '5723', '9687', 'P', '2777', '2317', '1517', '4107', '8999', 'S', 'e', 'j', 'e', 9445, 2221, 'i', 't', 'D', 'O']

Ex Output:

t, 2265, G, X, 2465, 5187, 5723, 9687, P, 2777, 2317, 1517, 4107, 8999, S, e