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

Input: Consider Input: ['p', 4329, 'S', 'D', 9241, 759, 2991, 'F', 3189, 7335, 9261, 'B', 6559, 9299, 7551, 'w', '1413', '7507', 'P', 'd', '8315', 'e', 'b', 's', '7811', 'Q', 'S', 'B', '7459', 'm', 'X', '5533', 'f', 'F', '9347', 'Q', 'w', 'o', '6161', 'C', 'q', 4811, 'a', 7535, 'y', 2697, 9437, 'P', 'V', 9525, 3879, 5751, 1229, 'i', 7163, 'v', 8903, 'F', 6205, 6447, 9677, 5529, 2883, 'G'], [4501, 'L', 'j', 'Y', 2979, 8761, 3813, 7945, 'r', 'X', 327, 'f', 'S', 'c', 6981, '1413', '7507', 'P', 'd', '8315', 'e', 'b', 's', '7811', 'Q', 'S', 'B', '7459', 'm', 'X', '5533', 'f', 'F', '9347', 'Q', 'w', 'o', '6161', 'C', 'g', 5615, 'n', 'e', 2989, 'T', 'P', 'z', 'R', 'E']

Output: 1413, 7507, P, d, 8315, e, b, s, 7811, Q, S, B, 7459, m, X, 5533, f, F, 9347, Q, w, o, 6161, C


Input: Consider Input: [3539, 6661, 127, 883, 'j', 'i', 9169, 4635, '8533', 'w', 'B', 'x', '8345', '1367', '8023', '4489', '5083', 'A', '2295', '2737', 'Q', 'H', 'Q', 4829, 'h', 'e', 'L', 6905, 't'], [7275, 1425, 'r', 'G', 'c', 's', 'W', 'L', 'C', 'o', '8533', 'w', 'B', 'x', '8345', '1367', '8023', '4489', '5083', 'A', '2295', '2737', 'z', 'V', 4703, 'c']

Output: 8533, w, B, x, 8345, 1367, 8023, 4489, 5083, A, 2295, 2737


Input: Consider Input: [21, 291, 'G', 'e', 'j', 'd', 'e', 'C', 3763, '5081', '6307', '5643', '3397', 'n', 'W', '4419', 'x', 'L', '5739', 'J', 'B', 'e', '8547', 'P', 'A', 'T', '4849', 'u', 'Z', '3125', 'R', 1559, 'p', 'G'], ['D', 'N', '5081', '6307', '5643', '3397', 'n', 'W', '4419', 'x', 'L', '5739', 'J', 'B', 'e', '8547', 'P', 'A', 'T', '4849', 'u', 'Z', '3125', 'z', 5999, 'k', 8871, 'w', 9687, 'q', 173]


Output: 5081, 6307, 5643, 3397, n, W, 4419, x, L, 5739, J, B, e, 8547, P, A, T, 4849, u, Z, 3125