Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [8871, 'm', 'K', 3183, '3727', '1879', 'O', '5255', '4129', '5267', '3313', 'b', 'F', 'o', 'U', '3289', 'M', 'c', '6381', '7767', 'f', '9003', 'y', 'u', '2633', '3821', '7623', 'l', '5123', 'P', '3959', 'J', 'G', 'i', 2427, 'L', 'F', 'Z', 'Z', 'o', 2869], [2225, 5685, 9269, 'Y', 6681, 5033, 'w', 8921, 9689, 6159, 'r', 'l', 'c', 'l', 8533, 'Z', 'a', 8701, 2307, 5689, 6293, '3727', '1879', 'O', '5255', '4129', '5267', '3313', 'b', 'F', 'o', 'U', '3289', 'M', 'c', '6381', '7767', 'f', '9003', 'y', 'u', '2633', '3821', '7623', 'l', '5123', 'P', '3959', 'J', 'F', 7405, 4577, 2243, 'H', 'A', 3829, 4603, 6531]
Output:
3727, 1879, O, 5255, 4129, 5267, 3313, b, F, o, U, 3289, M, c, 6381, 7767, f, 9003, y, u, 2633, 3821, 7623, l, 5123, P, 3959, J