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

Ex Input:
['w', 'i', 5729, 'G', 8651, '1845', 'a', '715', 'O', '3649', 'w', '8821', '2545', '1011', 'u', '895', '4133', 'n', '3759', 'w', 'X', 'R', 'A', 5949, 8347, 9169, 'N', 9753, 4353, 9447, 5747, 4347, 'f', 8247, 'D', 'y'], ['b', 'd', 237, 'y', 9735, 'M', 'j', 'f', 9789, 'x', 4217, '1845', 'a', '715', 'O', '3649', 'w', '8821', '2545', '1011', 'u', '895', '4133', 'n', '3759', 'w', 'X', 'E', 'e', 4021, 7065, 1651, 'n']

Ex Output:
1845, a, 715, O, 3649, w, 8821, 2545, 1011, u, 895, 4133, n, 3759, w, X


Ex Input:
['f', 7061, 5371, 'F', 49, 999, 9071, 'O', 9627, 283, 'q', '9151', 'a', 'E', '2865', '735', '5647', 'i', 'e', 'k', '4029', 'H', 'b', 'R', '3331', 'T', 'W', '7249', '4135', 'P', 'U', 2327, 'w', 7987, 9069, 'm', 'Q', 817, 'o'], ['N', 'j', 7227, 7051, 'D', 'b', 2645, 'l', 'g', 8699, 'a', 'u', 'r', 4215, 7499, 6595, 4001, 7107, 2799, 'q', '9151', 'a', 'E', '2865', '735', '5647', 'i', 'e', 'k', '4029', 'H', 'b', 'R', '3331', 'T', 'W', '7249', '4135', 'P', 'p', 'v', 4623, 4597, 387, 8861, 37, 'u', 4847, 7415, 8709, 5935]

Ex Output:
q, 9151, a, E, 2865, 735, 5647, i, e, k, 4029, H, b, R, 3331, T, W, 7249, 4135, P


Ex Input:
[1001, 9417, '7135', 'q', 'C', '1417', 'x', '2263', 'F', 539, 5643, 1153, 5893, 'f'], [7791, 6635, 401, '7135', 'q', 'C', '1417', 'x', '2263', 'X', 8455]

Ex Output:

7135, q, C, 1417, x, 2263