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

Input: Consider Input: [6423, 'w', 'K', 'm', 'S', 'X', '8857', 'r', '9809', 'a', 'g', '7297', 'H', 'Q', 'W', 'I', 'm', '3277', 'm', 'W', 'L', 'H', 'S', 'X', 'y', 2479, 'p', 'B', 7193, 8327, 'X', 8547, 2261, 'X', 477, 535, 'w', 'f', 2923], [5389, 6751, 'F', 'l', 9579, 'A', 'S', 'X', '8857', 'r', '9809', 'a', 'g', '7297', 'H', 'Q', 'W', 'I', 'm', '3277', 'm', 'W', 'L', 'H', 'O', 't', 8821, 'H', 3919, 7667, 'x', 'v', 4035, 3179, 9235, 5679, 'c', 'P']

Output: S, X, 8857, r, 9809, a, g, 7297, H, Q, W, I, m, 3277, m, W, L, H


Input: Consider Input: ['c', 'N', 9495, 305, 1779, 7447, 8519, 2777, '2205', '2411', '4203', 'g', 'V', '8037', 'h', '5963', 'L', '715', 'A', 'p', 'k', 'h', 'A', 7013, 509, 'G'], ['V', 2467, 9505, '2205', '2411', '4203', 'g', 'V', '8037', 'h', '5963', 'L', '715', 'W', 4557, 's', 4431]

Output: 2205, 2411, 4203, g, V, 8037, h, 5963, L, 715


Input: Consider Input: [7481, 'Z', 'g', 'R', 7829, 'T', 2965, 'R', '3583', 'y', '4071', 'Y', '3399', '3363', 'J', '7775', 'w', '7735', '2405', '4821', 'k', '5853', 'U', 'B', 9361, 'a', 'x', 4249, 's', 'b', 'B', 'q'], [1869, 2381, 8845, 1125, 'y', 'R', 3187, 2697, 6481, 3973, 'e', '3583', 'y', '4071', 'Y', '3399', '3363', 'J', '7775', 'w', '7735', '2405', '4821', 'k', '5853', 'l', 7459, 'd', 'B', 'H', 'a', 'h', 2049, 't', 239, 8891, 10009, 'I']


Output: 3583, y, 4071, Y, 3399, 3363, J, 7775, w, 7735, 2405, 4821, k, 5853