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

Input: Consider Input: ['r', 7309, 'a', 5957, 2551, 'c', '4533', 'L', '9417', 'm', '7989', '4409', 'a', 'M', 'h', 4163, 'n'], ['q', 4457, 'D', 2623, 't', 'F', 'c', '4533', 'L', '9417', 'm', '7989', '4409', 'u', 2719, 'G']

Output: c, 4533, L, 9417, m, 7989, 4409


Input: Consider Input: [5523, 6861, 3635, 2401, 4183, 835, 'g', '8277', 'q', 'J', 'n', 'A', 'T', '7569', '7187', 'E', 'o', '8695', 'H', 'l', 'z', 'q', '8419', '653', 'q', 'I', 'L', 5555, 8467, 7403, 'm', 'q', 'Q', 5691, 'Z', 7941, 8365, 't', 'M', 'q'], [1149, 7583, 'O', 'z', 'N', 7003, 'C', '8277', 'q', 'J', 'n', 'A', 'T', '7569', '7187', 'E', 'o', '8695', 'H', 'l', 'z', 'q', '8419', '653', 'b', 'H', 'w', 'r', 685, 'D', 'o', 2299, 5915, 4613]

Output: 8277, q, J, n, A, T, 7569, 7187, E, o, 8695, H, l, z, q, 8419, 653


Input: Consider Input: ['P', 6301, 8207, 'a', 'y', 'k', 's', 'G', 'L', '3825', 'B', '8787', 'q', 'v', 'X', '6287', 'U', '7725', '3569', '4701', '4863', '4089', '3629', 'y', 'O', '4007', 'W', '821', 'd', 'M', 5471, 7067, 'p', 'Q', 'v', 2363, 725, 3625, 3989, 'r', 3405, 't'], ['L', 'm', 'T', 'r', 8461, 'i', 'L', 5681, 9775, '3825', 'B', '8787', 'q', 'v', 'X', '6287', 'U', '7725', '3569', '4701', '4863', '4089', '3629', 'y', 'O', '4007', 'W', '821', 'A', 8381, 9735, 8169, 8329, 'U', 4053]


Output: 3825, B, 8787, q, v, X, 6287, U, 7725, 3569, 4701, 4863, 4089, 3629, y, O, 4007, W, 821