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

Input: Consider Input: [6397, 'W', 'k', 'v', 'E', '1941', '2295', 'q', '1357', '2041', '5263', '7781', 'w', 'N', 1329, 5233, 'U', 2563, 'L', 8547], [1857, 'F', 'g', 8381, 165, 'o', 7009, 5455, '1941', '2295', 'q', '1357', '2041', '5263', '7781', 'w', 'X', 'g']

Output: 1941, 2295, q, 1357, 2041, 5263, 7781, w


Input: Consider Input: ['w', 'Z', 8573, 'o', 'D', 'J', 5037, 2641, 'O', 'T', '9477', 'u', 'n', 'x', '693', 'o', 'l', '9113', '3117', '3743', '1889', 'G', 'P', 6189, 7671, 5677], ['P', 1411, 'O', 'T', '9477', 'u', 'n', 'x', '693', 'o', 'l', '9113', '3117', '3743', '1889', 'P', 'K', 'l', 'U', 2505, 3803, 9459, 'H', 1427, 1453, 'g']

Output: O, T, 9477, u, n, x, 693, o, l, 9113, 3117, 3743, 1889


Input: Consider Input: ['n', 5595, 'v', 'e', 7797, 6767, 1833, 'Q', 's', 'e', 'z', 'j', '7109', '3605', 'f', '5171', '3033', '8749', 'v', 'W', 'w', '5767', 'O', 'a', '9181', '1055', '8221', 'J', 'L', 'H', 'a', 'Y', 'f', 8131, 'Q', 3759, 7581, 7347, 5233, 'O', 9031, 'b', 'R', 6265, 5391, 'v', 'B', 6783], [6291, 'S', 4947, 'e', 5267, 'x', 9731, 'Q', 's', 'e', 'z', 'j', '7109', '3605', 'f', '5171', '3033', '8749', 'v', 'W', 'w', '5767', 'O', 'a', '9181', '1055', '8221', 'J', 'M', 23, 'M', 'w']


Output: Q, s, e, z, j, 7109, 3605, f, 5171, 3033, 8749, v, W, w, 5767, O, a, 9181, 1055, 8221, J