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

Ex Input:
[3277, 9365, 4973, 'q', 'S', 6337, 3661, 'Q', 'J', 'c', '3205', '2707', '1869', '1285', 'z', 'c', 'l', 'w', 5939, 6533, 'h', 1877, 10017, 'q'], ['L', 8235, 'n', 'Q', 'J', 'c', '3205', '2707', '1869', '1285', 'z', 'c', 'O', 1591, 'C', 2553, 2613, 'E', 3577, 'u']

Ex Output:
Q, J, c, 3205, 2707, 1869, 1285, z, c


Ex Input:
['a', 8119, 'S', 2575, 3531, '3727', 'x', 'J', 't', '9825', 'z', 'o', '4043', '3637', '7545', 'F', 'N', 'g', 'c'], [5559, 'P', 'V', 1419, 6507, 'W', 9429, 'V', 9763, '3727', 'x', 'J', 't', '9825', 'z', 'o', '4043', '3637', '7545', 'y', 1229, 'S', 5613]

Ex Output:
3727, x, J, t, 9825, z, o, 4043, 3637, 7545


Ex Input:
['c', 'Z', 6809, 1809, 'J', 'u', '1089', 'o', 'y', '8461', 'N', '9195', '5565', 'n', 8627, 'z', 'e'], [8935, 6959, 10015, 'J', 'u', '1089', 'o', 'y', '8461', 'N', '9195', '5565', 'm', 'H']

Ex Output:

J, u, 1089, o, y, 8461, N, 9195, 5565