Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['F', 'P', 5533, 4505, 'D', 'K', 5873, 4461, 'S', 7651, 'd', 'H', 'Q', 'z', 77, 'J', 6009, 'X', 'V', 9205, '5951', '6761', '2577', '9861', 'C', '2843', 'F', 'Y', '5487', '6649', 'B', '9339', 'w', 'G', 'Q', '8267', 'i', 'k', 'c', 'O', '5463', '5031', '4491', 'p', '8859', '1867', 'E', '545', '989', 'A', 'f', 'N', 5783, 1425, 5451, 'N', 'o', 5683, 6269, 'b', 6905, 3541, 6979, 'X', 1151, 'T', 2205, 3253, 'F', 'L', 's', 'L', 'f', 'C', 2161, 'J', 7551, 347], ['s', 'x', 'a', 'U', 'e', 9395, 4191, 'c', 'i', 'e', 's', 'F', 7691, 6425, 9691, 1719, '5951', '6761', '2577', '9861', 'C', '2843', 'F', 'Y', '5487', '6649', 'B', '9339', 'w', 'G', 'Q', '8267', 'i', 'k', 'c', 'O', '5463', '5031', '4491', 'p', '8859', '1867', 'E', '545', '989', 'A', 'l', 'd', 'c', 'z', 'i', 8563, 'R', 'm', 3731, 4683, 6149, 'P', 459, 6775, 'y', 'Y', 'm', 517]
Output:
5951, 6761, 2577, 9861, C, 2843, F, Y, 5487, 6649, B, 9339, w, G, Q, 8267, i, k, c, O, 5463, 5031, 4491, p, 8859, 1867, E, 545, 989, A