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

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


Ex Input:
['E', 'P', 'Z', '8337', 'L', '4245', 'M', 'M', 'H', '4531', 'B', 'p', '6961', 'x', 9461, 2587], [9027, 289, 2515, 'k', 'N', 'i', 9689, '8337', 'L', '4245', 'M', 'M', 'H', '4531', 'B', 'p', '6961', 'r', 'x', 737, 'a', 'w', 'K', 'S']

Ex Output:
8337, L, 4245, M, M, H, 4531, B, p, 6961


Ex Input:
['f', 1335, 3909, 7811, '9943', '3557', '2523', 'R', 'L', 'C', '6681', '8731', '4331', '227', '127', 'E', 'a', 'm', 'J', 'm', 2609, 'N'], [881, 'c', 'i', '9943', '3557', '2523', 'R', 'L', 'C', '6681', '8731', '4331', '227', '127', 'E', 'a', 'm', 'E', 'c', 6269]

Ex Output:

9943, 3557, 2523, R, L, C, 6681, 8731, 4331, 227, 127, E, a, m