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

Input: Consider Input: ['v', 1865, 4265, 'k', 3919, '4767', '4811', 'F', 'N', '217', 'z', 'G', 'M', '6733', '8855', '2983', 'r', '5191', 'D', 817, 'J', 8167, 8877, 'l', 'r', 8675, 'h', 'b', 4225, 8785, 6811], ['w', 4835, 'R', '4767', '4811', 'F', 'N', '217', 'z', 'G', 'M', '6733', '8855', '2983', 'r', '5191', 'Z', 9303, 2325, 'W']

Output: 4767, 4811, F, N, 217, z, G, M, 6733, 8855, 2983, r, 5191


Input: Consider Input: ['L', 'B', 'j', 5005, 1135, 6853, '395', '4543', '2301', 'B', '9275', '7891', '9083', '5417', '7543', '8291', '2655', 'm', 'g', '7981', '5703', '1179', 'i', 9785, 't', 'G', 'r', 'w', 'B', 3093], ['z', 'm', 'J', '395', '4543', '2301', 'B', '9275', '7891', '9083', '5417', '7543', '8291', '2655', 'm', 'g', '7981', '5703', '1179', 'D', 5163, 4649, 6219, 3227, 6101, 'y', 'K', 'W', 2233, 'n']

Output: 395, 4543, 2301, B, 9275, 7891, 9083, 5417, 7543, 8291, 2655, m, g, 7981, 5703, 1179


Input: Consider Input: [6721, 'Y', 'R', 'f', 9793, 7411, 1019, 1303, 'G', 'r', 'I', 'f', 'x', 'r', 8119, 'a', 'y', '9937', '3935', 'E', 'b', 'H', 'K', 'O', 'N', 'M', 'G', '2941', '5361', '8369', '3627', '6703', 'Z', 'K', 4879, 3557, 'W', 6271, 8877, 5091, 'n', 'L', 77], [2423, 'q', 861, 'u', 'a', 'y', '9937', '3935', 'E', 'b', 'H', 'K', 'O', 'N', 'M', 'G', '2941', '5361', '8369', '3627', '6703', 'v', 4989, 'Y', 7889, 3275, 'X', 'D', 6499, 757, 3429, 7165]


Output: a, y, 9937, 3935, E, b, H, K, O, N, M, G, 2941, 5361, 8369, 3627, 6703