Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['M', 'C', 3599, 'V', 5533, 1039, 8003, 5365, 691, 'n', 'Y', 7111, 8801, 5783, 'd', 2485, 6793, 'q', 'N', 'w', '1217', '6673', '2997', 'd', 'T', '5237', 'C', '3835', 'x', 'H', '909', 'x', '3965', 'U', 'a', '7727', '2349', 'c', 6003, 'm', 'e', 3809, 'Z', 1279, 5211, 'q', 'y', 'l', 983], [2429, 8121, 'S', 'N', 'z', 'w', 'y', 'j', 4653, 2803, 'g', 3189, 6871, 'G', 'N', 'w', '1217', '6673', '2997', 'd', 'T', '5237', 'C', '3835', 'x', 'H', '909', 'x', '3965', 'U', 'a', '7727', '2349', 5527, 'e', 'x', 'D', 'E', 1571]
Output:
N, w, 1217, 6673, 2997, d, T, 5237, C, 3835, x, H, 909, x, 3965, U, a, 7727, 2349