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

Input: Consider Input: [6971, 'd', 'J', 'p', 'F', 5463, 'F', 'P', 1897, 'J', 'O', 'j', 'H', 'y', '3659', '9455', 'P', '9829', 'm', 'Q', 7829, 'C', 5311], ['E', 'R', 'H', 217, 'J', 'O', 'j', 'H', 'y', '3659', '9455', 'P', '9829', 'm', 'T', 5849, 1449]

Output: J, O, j, H, y, 3659, 9455, P, 9829, m


Input: Consider Input: [3277, 9365, 4973, 'q', 'S', 6337, 3661, 'Q', 'J', 'c', '3205', '2707', '1869', '1285', 'z', 'c', 'l', 'w', 5939, 6533, 'h', 1877, 10017, 'q'], ['L', 8235, 'n', 'Q', 'J', 'c', '3205', '2707', '1869', '1285', 'z', 'c', 'O', 1591, 'C', 2553, 2613, 'E', 3577, 'u']

Output: Q, J, c, 3205, 2707, 1869, 1285, z, c


Input: Consider Input: ['p', 's', 5551, 8319, 4739, 7147, 427, 6677, 5595, 5185, 'm', 'u', '1049', '4955', '9641', '6121', 'Q', 'y', 'h', 'J', 'I', '1677', '9883', 'F', 'f', '6521', 'V', 'F', 39, 181, 8683, 'o', 'c'], [3993, 'H', 5585, 35, 4891, 9449, 'm', 'u', '1049', '4955', '9641', '6121', 'Q', 'y', 'h', 'J', 'I', '1677', '9883', 'F', 'f', '6521', 'V', 'S', 'H', 'b', 'r', 5153, 533, 'V']


Output: m, u, 1049, 4955, 9641, 6121, Q, y, h, J, I, 1677, 9883, F, f, 6521, V