Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [4967, 485, 'C', 'h', 8845, 'L', 'x', 'n', 7673, 'R', 2233, 'h', 'J', 6051, 1379, 2983, 'u', 8001, 'j', 'D', 3689, 'k', '9841', '6801', '7617', 'y', '2389', '6147', 'T', 'T', 'U', '8031', '3675', '9255', 'a', '3261', '8585', '3251', '3881', 'W', '8091', 'l', 'Y', '2559', 'v', 'S', 'a', 'o', 'M', 'T', 'b', 535, 'n', 3331, 'w', 6481, 'K', 'f', 2657, 8269, 'g', 2099, 6943, 'A', 'b', 8931, 1145, 'H', 8873, 7789, 'E', 'h', 'k', 549, 'n', 6319], [631, 6475, 9941, 'N', 'k', '9841', '6801', '7617', 'y', '2389', '6147', 'T', 'T', 'U', '8031', '3675', '9255', 'a', '3261', '8585', '3251', '3881', 'W', '8091', 'l', 'Y', '2559', 'v', 'S', 'a', 'o', 'M', 'L', 4117, 9507, 8085, 69]
Output:
k, 9841, 6801, 7617, y, 2389, 6147, T, T, U, 8031, 3675, 9255, a, 3261, 8585, 3251, 3881, W, 8091, l, Y, 2559, v, S, a, o, M