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

Ex Input:
[3659, 'D', 'P', 'K', '7241', 'V', 'p', 'i', '6013', 'X', 'C', '8145', 'Y', '2517', 'z', 'y', 6631, 2281, 6607], [3101, 7057, 'N', 7065, 'X', 'r', 'n', 2803, 'G', 'v', '7241', 'V', 'p', 'i', '6013', 'X', 'C', '8145', 'Y', '2517', 'z', 's', 5293, 'F', 1371, 4459, 6983, 'R', 'X']

Ex Output:
7241, V, p, i, 6013, X, C, 8145, Y, 2517, z

Ex Input:
['Y', 'z', 5335, 'X', 3843, 'D', 4457, 2327, 'V', 7231, 'y', 4551, 'W', 9241, '7147', '6713', '9717', '8795', '3161', 'V', '1129', '2943', '9809', 'a', '3273', 'y', 'R', 'M', 'g', 'E', 'D', 'd', 'x', 5331, 7187, 'J', 3839, 't'], [1485, 'f', 8207, 5859, 'D', 'k', 't', 'r', 'z', 613, 9091, 4893, 5755, '7147', '6713', '9717', '8795', '3161', 'V', '1129', '2943', '9809', 'a', '3273', 'y', 'R', 'M', 'Q', 5331, 'c', 3531, 6477, 'a']

Ex Output:
7147, 6713, 9717, 8795, 3161, V, 1129, 2943, 9809, a, 3273, y, R, M

Ex Input:
['H', 'U', 8765, 'R', 7157, '2641', 'G', '5211', 'f', '10029', 'R', '9749', '2153', '9759', '8377', 'z', '7447', 'k', 'N', 5797, 'V', 8393, 'y'], ['y', 105, 7463, '2641', 'G', '5211', 'f', '10029', 'R', '9749', '2153', '9759', '8377', 'z', '7447', 'k', 'B', 'i', 'l', 'c', 'Y', 'A', 'p', 't', 6701]

Ex Output:
2641, G, 5211, f, 10029, R, 9749, 2153, 9759, 8377, z, 7447, k