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

Input: Consider Input: [8711, 'f', 8715, 7649, 4967, '5867', 'i', '6567', 'R', '6087', '2945', 'J', 'j', 9099, 6331], ['a', 'T', 'n', 4869, '5867', 'i', '6567', 'R', '6087', '2945', 'M', 3125, 'D', 3835]

Output: 5867, i, 6567, R, 6087, 2945


Input: Consider Input: [1533, 'd', 'G', 9307, 'H', 'T', 505, 6437, 1249, 'R', 8573, 's', 6671, 3979, 'z', 'q', 1825, 4533, 'Q', 1053, 'D', 'H', '3855', 'Z', 'A', '3135', '8975', 'C', '7353', '4921', 'G', '7081', 'S', '9035', '8813', '4857', '3945', '3155', '6265', 'N', 'a', '697', 'l', '3685', '8669', '2417', 'x', 1287, 5341, 'L', 2371, 'n', 7671, 'b', 4883, 5911, 'i', 'U', 8205, 'a', 3747, 'n', 6563, 'a', 2661, 5559, 'n', 7577], ['p', 6333, 2619, 2667, 8241, 'V', 'v', 'M', 'D', 'H', '3855', 'Z', 'A', '3135', '8975', 'C', '7353', '4921', 'G', '7081', 'S', '9035', '8813', '4857', '3945', '3155', '6265', 'N', 'a', '697', 'l', '3685', '8669', '2417', 'F', 'F', 5571, 'm', 'B', 4651, 447, 'G', 'a', 5755, 'N', 'A', 'p', 'c', 'j', 5491, 'u', 'W', 'T', 'c', 9057, 'e']

Output: D, H, 3855, Z, A, 3135, 8975, C, 7353, 4921, G, 7081, S, 9035, 8813, 4857, 3945, 3155, 6265, N, a, 697, l, 3685, 8669, 2417


Input: Consider Input: ['X', 131, 'Y', 2673, 's', '5739', 'F', 'y', '1331', '2045', 'C', 5287, 'X'], [7047, 7529, '5739', 'F', 'y', '1331', '2045', 'T', 2395, 5647]


Output: 5739, F, y, 1331, 2045