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

Input: Consider Input: [6161, 9929, 'e', 2649, '8399', 'W', 'G', 'l', '3443', 'W', 'F', 'J', 'g', 'r', 'R', '41', 'c', 'c', '87', 'N', '7757', '2641', 'Z', 'v', 'g', '1365', 'R', '6435', 'J', 'Y', 3203, 5389], ['x', 'p', 7335, 4343, 'R', 6755, 'Q', 8319, 'N', 4111, 'a', 'M', 'n', 5739, 'j', 3435, 'J', 6645, 'O', 4833, '8399', 'W', 'G', 'l', '3443', 'W', 'F', 'J', 'g', 'r', 'R', '41', 'c', 'c', '87', 'N', '7757', '2641', 'Z', 'v', 'g', '1365', 'R', '6435', 'P', 'q', 549]

Output: 8399, W, G, l, 3443, W, F, J, g, r, R, 41, c, c, 87, N, 7757, 2641, Z, v, g, 1365, R, 6435


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: [3687, 'P', 'a', 3745, 'd', '5815', 'j', 'W', '7271', 'P', '1755', 'L', 'C', 'p', 'E', 'J', '869', 'F', '1777', '3373', 'V', 'q', '7825', 'r', 'u', 'G', '471', 'o', 'v', '9333', 'Y', 's', 'X', '8317', 't', 7905, 'g', 'c', 5093, 'r', 'R', 6179, 'J', 'g', 'Z', 9991, 8793, 8613, 535, 'D', 8391, 'v', 355, 'y'], ['I', 'e', 3473, 21, 8843, 'e', 'y', 'H', 'A', 'X', 245, 1077, '5815', 'j', 'W', '7271', 'P', '1755', 'L', 'C', 'p', 'E', 'J', '869', 'F', '1777', '3373', 'V', 'q', '7825', 'r', 'u', 'G', '471', 'o', 'v', '9333', 'Y', 's', 'X', '8317', 'i', 'k', 4043, 'G', 8773, 'S', 5429, 3563, 7435, 7011, 9833]


Output: 5815, j, W, 7271, P, 1755, L, C, p, E, J, 869, F, 1777, 3373, V, q, 7825, r, u, G, 471, o, v, 9333, Y, s, X, 8317