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

Input: Consider Input: ['p', 9773, 'Y', 'o', 'w', 's', '583', 'e', '2773', '9925', '8535', 'M', '9831', 'V', 'q', 'S', 5087, 'M', 7601, 'D'], [7787, 'l', 'o', 'w', 's', '583', 'e', '2773', '9925', '8535', 'M', '9831', 'V', 'q', 'X', 'W', 3163, 'f', 5201]

Output: o, w, s, 583, e, 2773, 9925, 8535, M, 9831, V, q


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: ['e', 'W', 'x', 6581, 'y', 4191, 'u', 'B', '6197', '6435', '4975', '5435', 'r', '7329', '4033', 'k', 'j', '5373', '5673', 'd', 'V'], ['i', 'O', 'Z', 211, 1503, 'X', 4315, 'G', 'u', 'B', '6197', '6435', '4975', '5435', 'r', '7329', '4033', 'k', 'j', '5373', '5673', 't', 'C']


Output: u, B, 6197, 6435, 4975, 5435, r, 7329, 4033, k, j, 5373, 5673