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

Input: Consider Input: ['f', 1055, 'X', 4189, 'G', 'J', 423, 8439, 'I', 'B', 6741, 151, 'R', 'A', 'S', 1495, 397, 'Y', 1945, 3493, 6379, 'b', '5877', 'E', 'd', '1819', '2441', '7059', '2535', '4855', '2281', '4211', '9017', '8631', 'C', '7107', '2473', '3995', '4923', '1735', '3551', 'U', 'X', 'V', 'v', 9151, 'L', 7093, 'r', 'n'], [5255, 'w', 'X', 5033, 'H', 4787, 7515, 'n', 9523, 'y', 'N', 4307, 3457, 1235, 3197, 'p', 'Q', 5355, 5255, 'E', 417, '5877', 'E', 'd', '1819', '2441', '7059', '2535', '4855', '2281', '4211', '9017', '8631', 'C', '7107', '2473', '3995', '4923', '1735', '3551', 'U', 'X', 'V', 'g', 'a', 'W', 2175, 4043, 'a', 'T', 1463, 1547, 7287, 'j', 'U', 2379, 5541, 7265]

Output: 5877, E, d, 1819, 2441, 7059, 2535, 4855, 2281, 4211, 9017, 8631, C, 7107, 2473, 3995, 4923, 1735, 3551, U, X, V


Input: Consider Input: [4731, 'z', 8923, 1325, 'P', 8435, 'u', 'B', 'N', 8191, 'O', '3019', '4077', 'w', 'W', 'x', 'z', '2233', '6509', 'N', '3069', '5471', 'K', 'x', 'q', '979', 'M', 'O', 'H', 9453], [4977, 'E', 4865, 'O', '3019', '4077', 'w', 'W', 'x', 'z', '2233', '6509', 'N', '3069', '5471', 'K', 'x', 'q', '979', 'M', 'R', 'T', 7065]

Output: O, 3019, 4077, w, W, x, z, 2233, 6509, N, 3069, 5471, K, x, q, 979, M


Input: Consider Input: [7047, 'D', 6273, 8289, 2637, 69, 'f', 's', 'Q', 5411, 'M', 'k', 1329, 5045, '4439', '2805', '5321', 'K', 'Z', 'x', 'h', 'h', 'T', '2547', '8881', 'r', 'I', '5103', '8595', 'P', '545', 's', 'r', 'P', 339], [3439, 4011, 9491, 'S', 'b', 'U', 9339, 'm', 89, 'W', '4439', '2805', '5321', 'K', 'Z', 'x', 'h', 'h', 'T', '2547', '8881', 'r', 'I', '5103', '8595', 'P', '545', 'J', 'g', 4447, 3335, 9605, 6811, 9881, 'r', 'e', 7223]


Output: 4439, 2805, 5321, K, Z, x, h, h, T, 2547, 8881, r, I, 5103, 8595, P, 545