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

Input: Consider Input: [3441, 443, 'D', 'n', '5111', 'F', 'T', 'i', 'O', '2763', '417', '9849', '4313', 'I', 3749, 9061, 'W', 'y'], ['O', 9869, 'X', 4785, 6259, 9043, 'h', '5111', 'F', 'T', 'i', 'O', '2763', '417', '9849', '4313', 'w', 'T', 'q', 8411, 't', 4719]

Output: 5111, F, T, i, O, 2763, 417, 9849, 4313

Input: Consider Input: ['U', 6489, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'I', 'B', 'R', 'N', 9533, 'd'], ['U', 4287, 'f', 'R', 1407, 3893, 6739, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'Z', 2981, 'i', 'a', 'k', 5909, 'S', 9997]

Output: o, e, Z, G, 8175, r, 1915, 8587, 8845

Input: Consider Input: [5925, 'M', 'h', 5379, 7177, 'n', 'v', 't', 'D', '6775', 'N', '5739', '5201', '7783', '5629', '63', 'h', '4341', 'c', '3795', '8447', 'i', 'a', 'L', '87', '1337', '4443', 'q', '9707', 'N', '741', '4093', '9179', '6975', 'L', '5851', '7203', '167', '4527', 'r', 'd', 8945, 'S', 6345, 'B', 'Y', 'u', 1831, 959, 'm', 'Z', 'b', 3851, 3197, 'K', 'z', 2299, 3835, 2995, 'x', 'i'], [6871, 'h', 7005, 6509, 467, 'T', 6487, 's', 335, 3809, '6775', 'N', '5739', '5201', '7783', '5629', '63', 'h', '4341', 'c', '3795', '8447', 'i', 'a', 'L', '87', '1337', '4443', 'q', '9707', 'N', '741', '4093', '9179', '6975', 'L', '5851', '7203', '167', '4527', 'b', 'Y', 'N', 7223, 3401, 'V', 405, 'Z', 'F', 'Q', 8259, 'y', 8551, 5055, 'P', 2005, 'G', 4813, 'C', 7271, 'c', 'M', 'Z', 5817, 8559, 3765, 2837, 161, 1263]
Output: 6775, N, 5739, 5201, 7783, 5629, 63, h, 4341, c, 3795, 8447, i, a, L, 87, 1337, 4443, q, 9707, N, 741, 4093, 9179, 6975, L, 5851, 7203, 167, 4527