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

Ex Input:
[1307, 'u', 'Z', 3323, 191, 'i', 'h', 't', 'L', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'C', 'M', 'y', 'h', 7985, 9989, 'j'], [2817, 1955, 2973, 'Y', 9221, 'z', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'G', 'M', 2083, 'O']

Ex Output:
8549, 7861, 9747, 3985, g, r, 1247, R, S, a, a, 749


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:
['A', 'i', 'k', 953, 2593, 'a', 'T', 'k', 6147, 7021, 'K', 7663, 1893, 'w', 'S', 't', 7051, 'w', 9653, 7863, 'r', 'v', 'K', 5081, 'v', 7511, 'd', 'S', '3157', '783', 'z', '4373', 'b', '101', '8745', '1943', '3731', '213', '1419', '3549', '1983', '4365', '1213', '6133', 'p', '5089', '875', 'x', 'x', '2101', 'F', 'N', '7511', 'g', 'H', 'u', 'A', '527', 's', 'A', 'G', 'd', 8381, 'c', 23, 5169], [4381, 447, 'A', 'h', 'C', 'M', 4421, 2587, 6365, 'Z', 1471, 'S', 'i', 3021, '3157', '783', 'z', '4373', 'b', '101', '8745', '1943', '3731', '213', '1419', '3549', '1983', '4365', '1213', '6133', 'p', '5089', '875', 'x', 'x', '2101', 'F', 'N', '7511', 'g', 'H', 'u', 'A', '527', 'G', 1687, 3295, 'z', 6595, 'X', 'H', 'P', 7441]

Ex Output:

3157, 783, z, 4373, b, 101, 8745, 1943, 3731, 213, 1419, 3549, 1983, 4365, 1213, 6133, p, 5089, 875, x, x, 2101, F, N, 7511, g, H, u, A, 527