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

Input: Consider Input: ['L', 6265, 'o', 'B', 9743, 9139, 't', '4107', '821', '9019', '5149', '7817', 'i', '787', 'G', 'b', 'g', 'g', 'j', '197', 'n', 'W', 'Z', '7081', '4487', '1439', '1117', 'K', 'O', '2241', 'J', 8701, 'U', 'q', 'r', 8487, 'G', 'N', 'z', 3439, 'I', 'a', 639], ['X', 7305, 'k', 4911, 1119, 'S', 'F', 8665, 3167, 1117, 6267, 4025, 'S', 'h', '4107', '821', '9019', '5149', '7817', 'i', '787', 'G', 'b', 'g', 'g', 'j', '197', 'n', 'W', 'Z', '7081', '4487', '1439', '1117', 'K', 'O', '2241', 'H', 7485, 5635]

Output: 4107, 821, 9019, 5149, 7817, i, 787, G, b, g, g, j, 197, n, W, Z, 7081, 4487, 1439, 1117, K, O, 2241


Input: Consider Input: [1249, 4091, 'E', 483, 'O', 8427, '5009', 'X', 'Q', '107', 'F', '6119', '4479', 'u', 'o', 'U', '4405', '1737', 'K', 'j', 'B', 'U', 2857, 's'], ['J', 'B', 8825, 9581, '5009', 'X', 'Q', '107', 'F', '6119', '4479', 'u', 'o', 'U', '4405', '1737', 'K', 'j', 'B', 'E', 'e', 'R', 'X', 1739, 'D', 1385, 'e', 6969]

Output: 5009, X, Q, 107, F, 6119, 4479, u, o, U, 4405, 1737, K, j, B


Input: Consider Input: ['S', 5633, 9135, 'q', 799, 6685, 'a', 'U', 351, '1593', 'n', 'F', '257', '5089', 'n', 'H', '2303', 'k', 'S', '7075', '2623', '8817', '4903', 'B', 'L', 10011, 'b', 'p', 771, 'I'], ['m', 9035, 2107, 8755, 3059, 'U', 'b', 1669, 4551, 'z', 443, 'R', 3093, 1037, '1593', 'n', 'F', '257', '5089', 'n', 'H', '2303', 'k', 'S', '7075', '2623', '8817', '4903', 'N', 5947]


Output: 1593, n, F, 257, 5089, n, H, 2303, k, S, 7075, 2623, 8817, 4903