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

Input: Consider Input: ['X', 'U', 'Z', 9489, '4623', 'M', 'd', '5977', '7669', '8583', '2455', 'D', 'j', 'c', 'U', 'p', 'R', 609, 4535, 4269, 8941, 'I', 2091, 'Q'], [3721, 8573, 8821, 6095, 1215, 1195, '4623', 'M', 'd', '5977', '7669', '8583', '2455', 'D', 'j', 'c', 'L', 'm', 'q', 'j', 697, 3367, 'R']

Output: 4623, M, d, 5977, 7669, 8583, 2455, D, j, c


Input: Consider Input: ['N', 1775, 't', 385, 1349, 'T', 'E', 'u', 5647, 't', 'd', 'I', 'r', 'f', '6045', 'U', '9023', '9857', 'R', 'Y', 'w', 'P', '7089', '9679', '1507', 'S', '6815', 'Y', 'c', 'H', 'I', 'Q', 'Y', 'M', 7789, 'J', 'I', 4813, 6533, 1745, 'y', 4711, 'E', 'F', 5191, 's', 6979], ['W', 'F', 2799, 'I', 'r', 'f', '6045', 'U', '9023', '9857', 'R', 'Y', 'w', 'P', '7089', '9679', '1507', 'S', '6815', 'Y', 'c', 'H', 'I', 'Y', 'k', 6395, 'L', 5747, 'l', 4081, 'v', 3129, 7249, 375, 4575, 4725, 'R', 'A', 4761, 3217, 5203, 'E', 'T']

Output: I, r, f, 6045, U, 9023, 9857, R, Y, w, P, 7089, 9679, 1507, S, 6815, Y, c, H, I


Input: Consider Input: [7681, 'f', 7925, 8579, 9901, 'N', 6843, '5335', '6707', '4261', 'Z', 'F', '4743', '4251', '1257', 'o', '3329', '8415', 'N', 'b', 'x', '641', 'Z', 4929, 1457, 't', 'o', 'X', 'f', 6059], [9065, 'a', 7069, 5597, 'k', 1505, 2289, 'x', 9615, '5335', '6707', '4261', 'Z', 'F', '4743', '4251', '1257', 'o', '3329', '8415', 'N', 'b', 'x', '641', 'S', 6491, 'P']


Output: 5335, 6707, 4261, Z, F, 4743, 4251, 1257, o, 3329, 8415, N, b, x, 641