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

Ex Input:
[3585, 8561, '6537', 'm', 'e', 'E'], ['H', 'x', '6537', 'm', 'i', 9553]

Ex Output:
6537, m


Ex Input:
[6397, 'W', 'k', 'v', 'E', '1941', '2295', 'q', '1357', '2041', '5263', '7781', 'w', 'N', 1329, 5233, 'U', 2563, 'L', 8547], [1857, 'F', 'g', 8381, 165, 'o', 7009, 5455, '1941', '2295', 'q', '1357', '2041', '5263', '7781', 'w', 'X', 'g']

Ex Output:
1941, 2295, q, 1357, 2041, 5263, 7781, w


Ex Input:
['u', 'U', 'X', '8457', 'Y', '9217', '815', '2443', '2961', 'x', 'c', '4961', 'P', 'Z', 'g', 'C', 's'], ['o', 659, 8425, 8699, 1221, 'Y', 3891, '8457', 'Y', '9217', '815', '2443', '2961', 'x', 'c', '4961', 'T', 9131, 7787, 5989, 2855, 's', 1529, 3609]

Ex Output:

8457, Y, 9217, 815, 2443, 2961, x, c, 4961