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

Input: Consider Input: [1875, 'T', 'Y', '5527', 'F', 'y', '5669', 'm', 'k', 2655, 8089], [3997, 7707, 9937, 'M', '5527', 'F', 'y', '5669', 'm', 'a', 'e']

Output: 5527, F, y, 5669, m


Input: Consider Input: [3099, 6093, 4271, 6819, 5389, 'u', 'X', 'e', 7511, 'W', 1089, 7755, 2839, 4489, 9439, 'e', '9795', '8439', 'k', '4309', '4815', '7907', '1999', '8777', 'K', 'z', '6819', '199', '311', 'P', 'c', '7135', 'n', '7681', 'X', 'y', 'e', '6085', 'Z', 'N', 6013, 9677, 759, 8765, 'r', 6787, 'G', 4705, 7571, 'Q', 'k', 4121, 'C', 'H', 'H', 4407, 'b', 'O', 'e'], [4829, 7255, 7697, 'C', 'y', 4555, 'X', 6141, 'b', 'X', 7179, 'W', 1425, 17, 8659, 'H', 'm', 355, 'b', 'u', 'Q', 'C', 'e', '9795', '8439', 'k', '4309', '4815', '7907', '1999', '8777', 'K', 'z', '6819', '199', '311', 'P', 'c', '7135', 'n', '7681', 'X', 'y', 'e', '6085', 'Z', 'J', 9911, 4879, 3849, 'J', 7507, 'n']

Output: e, 9795, 8439, k, 4309, 4815, 7907, 1999, 8777, K, z, 6819, 199, 311, P, c, 7135, n, 7681, X, y, e, 6085, Z


Input: Consider Input: ['y', 8237, 7255, 'm', 1545, '1271', 'i', 'H', 'u', '4019', 'w', 8889], ['T', 541, 939, 9057, '1271', 'i', 'H', 'u', '4019', 'e', 9045, 'e', 773]


Output: 1271, i, H, u, 4019