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

Ex Input:
[5555, 'e', 'k', '4653', 'S', 'q', 'o', 'z'], [8655, 3981, 'k', '4653', 'S', 'q', 'k', 8991, 8619, 's']

Ex Output:
k, 4653, S, q


Ex Input:
[8377, 'Q', 5191, 'h', 2277, 2989, 'W', '7491', '593', '335', '4807', 'X', '6677', 'M', 'p', 'Y', '7747', 'j', '7155', '3591', '7715', 'I', '4975', '4979', '6273', '9479', 'w', '1781', 'q', 'L', 8201, 'e', 585, 'h', 'G', 'T', 3401, 'd', 'l', 'o'], [8059, 'f', 'D', 'l', 7863, 'k', 'G', 'C', 'd', 'Z', 'Z', 'A', 895, '7491', '593', '335', '4807', 'X', '6677', 'M', 'p', 'Y', '7747', 'j', '7155', '3591', '7715', 'I', '4975', '4979', '6273', '9479', 'w', '1781', 'x', 'v', 4061, 'O', 'd', 'q', 'r', 1301, 4515, 4365, 1631, 'N', 'L', 6353, 'k', 2393, 4333, 3241, 1043]

Ex Output:
7491, 593, 335, 4807, X, 6677, M, p, Y, 7747, j, 7155, 3591, 7715, I, 4975, 4979, 6273, 9479, w, 1781


Ex Input:
[6133, 3557, '8701', '405', 'z', 'K', '6141', 'K', 'O', 9247, 'I', 'p'], [2609, 8547, 2063, 9727, '8701', '405', 'z', 'K', '6141', 'd', 9229]

Ex Output:

8701, 405, z, K, 6141