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

Example 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]
Example Output: o, e, Z, G, 8175, r, 1915, 8587, 8845

Example Input: [6529, 'i', 8343, 't', 'h', 5181, 'k', '5863', 'm', 'P', '9787', 'r', '1383', 'U', 'a', 'p', 'T', '1635', 'J', 'X', 'O', 'E', 'W', 625, 'O', 'm'], [4169, 8965, 6125, 'U', 'x', 'E', 7203, 'I', 81, 'P', 'r', 8581, 'k', '5863', 'm', 'P', '9787', 'r', '1383', 'U', 'a', 'p', 'T', '1635', 'J', 'X', 'O', 'v', 'f', 'q', 'b', 'm', 'f', 9239, 'b', 895, 703, 7809, 'E', 'l', 'c', 7915]
Example Output: k, 5863, m, P, 9787, r, 1383, U, a, p, T, 1635, J, X, O

Example Input: [5305, 7877, 'W', 9545, 'v', 5427, 5945, 'O', 'v', 'u', 'O', 6755, '4939', '5623', '5265', '1873', 'f', 'Q', '7719', '879', '8653', 'c', '3849', 'v', 'u', 'h', 'a', '5849', 'o', '7181', 'O', 'L', 'u', '6221', 'g', 't', 'h', 'h', 'U', 'O', 'F', 'W', 'z', 'k', 'F', 7899, 4777, 'w', 'U', 'j', 't', 10007, 4179, 'b', 5773], [7041, 1449, 4343, '4939', '5623', '5265', '1873', 'f', 'Q', '7719', '879', '8653', 'c', '3849', 'v', 'u', 'h', 'a', '5849', 'o', '7181', 'O', 'L', 'u', '6221', 'g', 't', 'h', 'h', 'U', 'O', 'h', 'i', 'C', 1881, 5831, 'x', 8357]
Example Output:
4939, 5623, 5265, 1873, f, Q, 7719, 879, 8653, c, 3849, v, u, h, a, 5849, o, 7181, O, L, u, 6221, g, t, h, h, U, O