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

Input: Consider Input: ['d', 2317, 'y', 8487, 'r', 4789, 5525, '3961', '1747', 'v', '7423', '847', 'a', '4969', 'T', 'L', '5383', 'W', 'U', 5749, 9533, 'T', 'Z', 'x'], [1401, 'F', 9303, 'w', 4629, 9053, 'k', 7351, 1261, '3961', '1747', 'v', '7423', '847', 'a', '4969', 'T', 'L', '5383', 'o', 'q']

Output: 3961, 1747, v, 7423, 847, a, 4969, T, L, 5383


Input: Consider Input: ['z', 3279, 'C', 'F', 9153, 'E', 417, 'P', 6405, 1849, 4819, 'V', 4497, 2031, 'L', 'g', '8015', 'D', 'b', '3659', 'P', 'm', '6013', '6583', '6705', '8449', 'a', 'X', '2087', 'Y', 'L', 'i', 5651, 'y', 'L', 2993, 2605, 6805, 'w', 5731, 'Q', 9359, 'Y', 4267, 2985], ['F', 'x', 5427, 4915, 2541, 'H', 'S', 8953, 'L', 7911, 'b', 'I', 1945, 859, 'i', 'g', '8015', 'D', 'b', '3659', 'P', 'm', '6013', '6583', '6705', '8449', 'a', 'X', '2087', 'Y', 'N', 1971, 'a']

Output: g, 8015, D, b, 3659, P, m, 6013, 6583, 6705, 8449, a, X, 2087, Y


Input: Consider Input: [3417, 9351, 7863, 9551, 'U', 211, 'k', 9677, 4317, 9831, 'D', 1327, 'R', '2991', 'Q', 'k', 'p', '8079', 'g', '5949', '303', '3353', '8037', 'j', 'z', '9771', 'c', 'o', 'S', 'T', 6515, 'F', 'z', 7861], [4085, 'K', 9763, 'Z', 'J', 5491, 'h', 'v', 'R', '2991', 'Q', 'k', 'p', '8079', 'g', '5949', '303', '3353', '8037', 'j', 'z', '9771', 'z', 9867, 9005]


Output: R, 2991, Q, k, p, 8079, g, 5949, 303, 3353, 8037, j, z, 9771