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

Input: Consider Input: ['i', 4077, 'Z', 6231, 2337, 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'd', 1355, 'n'], [505, 'A', 8789, 75, 'q', 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'e', 'r', 'I', 'm', 1525, 3577]

Output: h, 1181, 1631, 2605, 587, 1477, 2707, R, O


Input: Consider Input: ['O', 'k', 'E', 281, 'J', 'J', 'z', 9541, 'K', 'Y', 'G', 's', 'J', 'h', 'o', '2303', '603', 'M', '5785', '7949', 'P', '9685', 'd', '801', '5021', '479', 'd', 'A', '1609', 'T', 'b', 'd'], [3187, 1933, 'u', 'E', 'Y', 2413, 'W', 'f', 'V', 9713, 4903, 'f', 'G', 's', 'J', 'h', 'o', '2303', '603', 'M', '5785', '7949', 'P', '9685', 'd', '801', '5021', '479', 'd', 'A', '1609', 'T', 'i', 5937, 'j', 1943, 'N', 9789, 'p', 3693, 2243, 9701, 6051, 6437, 'K', 4251, 5597, 'A', 'O', 'Y', 'P', 2435]

Output: G, s, J, h, o, 2303, 603, M, 5785, 7949, P, 9685, d, 801, 5021, 479, d, A, 1609, T


Input: Consider Input: [4371, 779, 735, 7127, 'W', 'G', 8727, 583, 5785, 'c', 4807, 'E', '9061', '5013', '319', 'U', '21', 'q', 'L', '3175', 'S', 'Y', '1743', 'e', 'K', '3143', 'A', 'H', '3005', '7361', '9641', 'V', 'N', '7301', '6429', 'T', 6753, 4861, 'c', 4323, 's', 2379, 'F', 'g', 9451, 'Q', 'q'], [8973, 'H', 'H', 1785, '9061', '5013', '319', 'U', '21', 'q', 'L', '3175', 'S', 'Y', '1743', 'e', 'K', '3143', 'A', 'H', '3005', '7361', '9641', 'V', 'N', '7301', '6429', 'C', 8647, 'I', 't', 4557, 6151, 'm', 'N', 6485, 35, 5059, 6271]


Output: 9061, 5013, 319, U, 21, q, L, 3175, S, Y, 1743, e, K, 3143, A, H, 3005, 7361, 9641, V, N, 7301, 6429