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

Ex Input:
['L', 5499, 'z', 'J', 'I', 't', 6291], [337, 5087, 'z', 'J', 'I', 'p', 'm']

Ex Output:
z, J, I


Ex Input:
[875, 'U', 'g', 'q', 'H', 2847, 'f', '6811', 'B', '7549', 'K', 'r', 'V', 'x', 'P', 'X', '2469', '3845', 'W', 'e', 'n', 5885, 'w', 3345, 4693, 'H', 7789, 'y', 'j', 'e'], ['V', 'j', 6713, 2923, 'y', 6205, 'm', 5961, 9023, '6811', 'B', '7549', 'K', 'r', 'V', 'x', 'P', 'X', '2469', '3845', 'W', 'y', 7427, 5987]

Ex Output:
6811, B, 7549, K, r, V, x, P, X, 2469, 3845, W


Ex Input:
[4931, 5661, 8651, 'l', 'd', '9585', 'r', 'U', 'z', '6511', '9443', '2917', 'K', 2179, 5747, 'C'], [3737, 7345, 3921, 'i', 9199, 3269, '9585', 'r', 'U', 'z', '6511', '9443', '2917', 'A', 'd', 185, 'M']

Ex Output:

9585, r, U, z, 6511, 9443, 2917