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

Input: Consider Input: ['U', 6489, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'I', 'B', 'R', 'N', 9533, 'd'], ['U', 4287, 'f', 'R', 1407, 3893, 6739, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'Z', 2981, 'i', 'a', 'k', 5909, 'S', 9997]

Output: o, e, Z, G, 8175, r, 1915, 8587, 8845


Input: Consider Input: [2471, 'o', 'j', 'J', 7539, 8949, 2023, 'b', 'w', 9935, 'i', 'A', '843', 'E', 'Q', 'M', '3185', 'h', 'u', 'K', 'D', '5655', '2057', '1169', 'Q', 'Y', 2199], [2019, 'Y', 2557, 2337, 'p', 'i', 'A', '843', 'E', 'Q', 'M', '3185', 'h', 'u', 'K', 'D', '5655', '2057', '1169', 'g', 7743, 'L', 'A', 5137, 3587, 'V', 1399]

Output: i, A, 843, E, Q, M, 3185, h, u, K, D, 5655, 2057, 1169


Input: Consider Input: ['v', 'I', 'Z', 2797, 657, 'W', 'A', 'Z', '5457', 'p', 'l', 't', 'p', 'g', 'i', 'F', 'Q', 'R'], ['y', 'v', 2457, 265, 9839, 'u', 'A', 'Z', '5457', 'p', 'l', 't', 'p', 'z', 'V']


Output: A, Z, 5457, p, l, t, p