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

Input: Consider Input: [7667, 5143, 'T', 'E', 'T', 'q', 'Q', 'i', 'c', 'A', 7503, '3605', 'c', 'c', '9759', '4535', '2651', 'M', 'f', 'm', '1859', '1089', '8417', '6247', 'B', '167', '2481', '5505', 'r', '7913', 'L', '9891', 'Z', '9983', 't', 'B'], ['M', 'S', 'J', 7313, 2291, 'e', 'T', 's', 'Q', 9505, 2219, 7845, 'K', 2339, 2553, 6137, 'j', 's', 6735, 7595, '3605', 'c', 'c', '9759', '4535', '2651', 'M', 'f', 'm', '1859', '1089', '8417', '6247', 'B', '167', '2481', '5505', 'r', '7913', 'L', '9891', 'Z', '9983', 'M', 'v', 'B', 8189, 4919, 9041, 4579, 'V']

Output: 3605, c, c, 9759, 4535, 2651, M, f, m, 1859, 1089, 8417, 6247, B, 167, 2481, 5505, r, 7913, L, 9891, Z, 9983


Input: Consider Input: [2481, 7755, 2663, 2449, 4291, 'b', 5343, 'F', 'A', '3811', 'G', 'I', '415', '6825', '2449', 'q', 'W', 'x', 't', 'K', 'l', 539, 3959], ['W', 'N', 'K', 4351, '3811', 'G', 'I', '415', '6825', '2449', 'q', 'W', 'x', 'c', 9833]

Output: 3811, G, I, 415, 6825, 2449, q, W, x


Input: Consider Input: [7201, 5817, 319, 'l', 'd', 'M', 1217, 'M', 5853, 2641, 'r', '1765', '7867', 'J', 'l', 'O', 'm', 'F', '9005', '1125', '5735', 'l', 'f', '5583', '9819', '1619', '8029', '7631', '1885', 'L', 'M', 3119, 'X', 81, 'L', 1031, 7617], [5653, 5767, 3799, '1765', '7867', 'J', 'l', 'O', 'm', 'F', '9005', '1125', '5735', 'l', 'f', '5583', '9819', '1619', '8029', '7631', '1885', 'T', 'h', 3885, 'N', 8837, 'k', 'J', 'F', 6273, 8931, 'G', 5023]


Output: 1765, 7867, J, l, O, m, F, 9005, 1125, 5735, l, f, 5583, 9819, 1619, 8029, 7631, 1885