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

Ex Input:
['K', 1657, '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'X', 'n', 3631, 'o', 'm'], ['P', 6249, 7565, 's', 1041, 'V', 'D', '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'n', 'U', 'z', 2559, 5379, 6985, 6059]

Ex Output:
5001, 8571, 2343, 9471, P, 6369, 9299

Ex Input:
[2185, 'H', 9933, 6987, 'l', 'N', 3787, 'H', 'K', 'X', 'I', '8517', 'a', 'M', 'e', '7443', '185', '6897', '8395', '3867', '4671', 'e', '2031', '877', 'T', '735', '1273', 'd', '7757', '2005', 't', 8763, 2723, 457, 8941, 9919], [2819, 4477, 'x', 'S', 'D', 1309, 4739, 'B', 'Z', 'K', 7141, 'I', 'x', 6709, 'p', 5629, 'M', 8669, 3157, 5169, 9737, 'Z', 'H', 'K', 'X', 'I', '8517', 'a', 'M', 'e', '7443', '185', '6897', '8395', '3867', '4671', 'e', '2031', '877', 'T', '735', '1273', 'd', '7757', '2005', 'w', 'j', 5143, 6859, 8985, 8441, 'K', 'H', 's']

Ex Output:
H, K, X, I, 8517, a, M, e, 7443, 185, 6897, 8395, 3867, 4671, e, 2031, 877, T, 735, 1273, d, 7757, 2005

Ex Input:
[7963, 'h', 275, 6023, '1959', 'I', '2997', '217', '1609', 'm', 'b', 'e'], ['V', 9623, '1959', 'I', '2997', '217', '1609', 'R', 7429, 'u']

Ex Output:
1959, I, 2997, 217, 1609