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

Input: Consider Input: ['L', 6265, 'o', 'B', 9743, 9139, 't', '4107', '821', '9019', '5149', '7817', 'i', '787', 'G', 'b', 'g', 'g', 'j', '197', 'n', 'W', 'Z', '7081', '4487', '1439', '1117', 'K', 'O', '2241', 'J', 8701, 'U', 'q', 'r', 8487, 'G', 'N', 'z', 3439, 'I', 'a', 639], ['X', 7305, 'k', 4911, 1119, 'S', 'F', 8665, 3167, 1117, 6267, 4025, 'S', 'h', '4107', '821', '9019', '5149', '7817', 'i', '787', 'G', 'b', 'g', 'g', 'j', '197', 'n', 'W', 'Z', '7081', '4487', '1439', '1117', 'K', 'O', '2241', 'H', 7485, 5635]

Output: 4107, 821, 9019, 5149, 7817, i, 787, G, b, g, g, j, 197, n, W, Z, 7081, 4487, 1439, 1117, K, O, 2241

Input: Consider Input: ['c', 3869, 'X', 9543, 'y', 3435, 'k', 'L', 9191, 'C', 'X', 'U', 'w', 'z', 'y', '6225', 's', '1927', '1777', 'N', '8311', 'B', 'q', 'r', '4829', 'r', '5909', 'e', 'G', 'J', '9631', 'V', 'b', 'G', 'g', 'g', 5369, 7691], ['Z', 'i', 'X', 'U', 'w', 'z', 'y', '6225', 's', '1927', '1777', 'N', '8311', 'B', 'q', 'r', '4829', 'r', '5909', 'e', 'G', 'J', '9631', 'o', 2079, 1461, 633, 3253, 8295, 3637, 'q', 'r', 8737, 'i']

Output: X, U, w, z, y, 6225, s, 1927, 1777, N, 8311, B, q, r, 4829, r, 5909, e, G, J, 9631

Input: Consider Input: [3807, 'Q', 'S', 3677, 'v', 3147, 'L', 'K', 715, '10005', '7209', 'r', '9205', '6193', 'f', '1005', '5085', '5543', 'S', 'L', 2973, 8809], ['x', 'v', 'b', 7635, 217, 'g', 3927, 3151, 't', 2375, '10005', '7209', 'r', '9205', '6193', 'f', '1005', '5085', '5543', 'S', 'r', 'P']
Output: 10005, 7209, r, 9205, 6193, f, 1005, 5085, 5543, S