Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [1267, 7441, 5051, 'I', 's', 'G', 'p', 8623, 'n', 1549, 'P', 7459, 3623, '5555', '29', '8005', 'e', 'J', '6123', 'O', '6673', '5141', '8183', 'K', 'f', '6205', '3201', 'g', '1911', '7669', '7515', 'e', 2357, 3409, 'B', 'N', 5727, 'c', 1501, 4521, 7559, 'w', 'Y', 1585, 829, 1533], [1751, 2481, 'l', 7497, 6799, 'z', 6791, '5555', '29', '8005', 'e', 'J', '6123', 'O', '6673', '5141', '8183', 'K', 'f', '6205', '3201', 'g', '1911', '7669', '7515', 't', 6657, 'h', 'g', 'D', 'd', 9805, 5251, 'j', 1447]
Output:
5555, 29, 8005, e, J, 6123, O, 6673, 5141, 8183, K, f, 6205, 3201, g, 1911, 7669, 7515