Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['F', 4609, 435, 1709, 'l', 'p', 1743, 4321, 't', 5251, 5297, 4303, 'H', '2887', 's', '1347', '5387', 'P', 'T', 'H', 'v', '4117', 'E', '2093', '8107', '4515', 'g', '1825', 'A', '9747', '4585', '9765', 'w', '1529', '8973', '2849', 'V', '4805', 'j', 'x', 'u', 3579, 'q', 'a', 6125, 'A', 8259, 9381, 'l', 8677, 'w', 't', 'Z', 9471, 5581, 7491, 's', 9515, 7451, 3755, 655, 5323, 'E', 7107], ['H', 9013, 5033, 4115, '2887', 's', '1347', '5387', 'P', 'T', 'H', 'v', '4117', 'E', '2093', '8107', '4515', 'g', '1825', 'A', '9747', '4585', '9765', 'w', '1529', '8973', '2849', 'V', '4805', 'j', 'B', 1721, 'a', 'V', 1205, 7009, 'O', 1167, 9233, 2075, 1779, 1953, 217, 331, 1673, 'W', 'B', 'e', 'S', 5895, 'H', 7399, 'F', 'K', 2423, 5551]
Output:
2887, s, 1347, 5387, P, T, H, v, 4117, E, 2093, 8107, 4515, g, 1825, A, 9747, 4585, 9765, w, 1529, 8973, 2849, V, 4805, j