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

Input: Consider Input: ['x', 495, 'L', 'O', 2935, 'y', 163, 3507, 6515, '5249', '9751', '8269', '923', '10005', '9739', 'u', 'X', 'y', '4535', 'I', 'V', 'f', '8511', '8955', 's', '2255', '1', '7831', 't', 'w', 1985, 'F', 'V', 5375, 6359, 7963, 4103, 2625, 'p', 'N', 7945, 'L', 6909], [251, 'J', 'k', 4075, 'd', 'x', 'j', 'K', 'u', 605, 1667, 8527, 6845, 2537, 'O', 9259, 'o', 'B', '5249', '9751', '8269', '923', '10005', '9739', 'u', 'X', 'y', '4535', 'I', 'V', 'f', '8511', '8955', 's', '2255', '1', '7831', 't', 'j', 'S', 'H', 1289]

Output: 5249, 9751, 8269, 923, 10005, 9739, u, X, y, 4535, I, V, f, 8511, 8955, s, 2255, 1, 7831, t


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: [1023, 'k', 7571, 7397, 9153, 9027, 1735, 9135, 'q', 2729, 5131, 3875, 8719, 'R', 'J', 'f', 'q', 'o', '3935', '9543', '8945', 'N', 'L', 'i', 'h', '8123', 'H', '3687', 'O', '7311', 'u', '2443', 'p', 'X', 'W', 'J', 'v', 'p', 8789], ['e', 'P', 'o', '3935', '9543', '8945', 'N', 'L', 'i', 'h', '8123', 'H', '3687', 'O', '7311', 'u', '2443', 'p', 'X', 'W', 'P', 1017, 'x', 49, 'm', 'h', 9129, 1789, 'x', 1779, 'h', 'm', 1557, 'S', 'g', 9183, 3021]


Output: o, 3935, 9543, 8945, N, L, i, h, 8123, H, 3687, O, 7311, u, 2443, p, X, W