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

Input: Consider Input: ['c', 'G', 8225, 6329, '6291', '5279', 'n', 'A', 'J', 'n', 5221, 'r', 't'], ['k', 'M', 'Z', 'B', 4003, '6291', '5279', 'n', 'A', 'J', 'g', 'm']

Output: 6291, 5279, n, A, J


Input: Consider Input: ['w', 'i', 5729, 'G', 8651, '1845', 'a', '715', 'O', '3649', 'w', '8821', '2545', '1011', 'u', '895', '4133', 'n', '3759', 'w', 'X', 'R', 'A', 5949, 8347, 9169, 'N', 9753, 4353, 9447, 5747, 4347, 'f', 8247, 'D', 'y'], ['b', 'd', 237, 'y', 9735, 'M', 'j', 'f', 9789, 'x', 4217, '1845', 'a', '715', 'O', '3649', 'w', '8821', '2545', '1011', 'u', '895', '4133', 'n', '3759', 'w', 'X', 'E', 'e', 4021, 7065, 1651, 'n']

Output: 1845, a, 715, O, 3649, w, 8821, 2545, 1011, u, 895, 4133, n, 3759, w, X


Input: Consider Input: [3265, 1713, 7561, 4199, 'm', 'm', 7871, 'L', 'p', '7809', '4853', 'x', 'A', 'G', 'X', 'A', 'e', 'd', 'c', '2827', 'A', 'T', '2113', '9387', 'n', 'N', 'N', 'W', 'Z', 'Q', 'J'], [1247, 'U', 'k', 9111, 431, 2795, 'J', 'w', 2719, 1225, 'x', 'w', 'E', 'p', '7809', '4853', 'x', 'A', 'G', 'X', 'A', 'e', 'd', 'c', '2827', 'A', 'T', '2113', '9387', 'n', 'N', 'A', 'D', 'v', 753, 9433, 'c', 'x', 2107, 953, 1035]


Output: p, 7809, 4853, x, A, G, X, A, e, d, c, 2827, A, T, 2113, 9387, n, N