Teacher:In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Teacher: Now, understand the problem? Solve this instance: ['A', 2397, 'w', 2339, 4523, 7001, 5495, 'I', '3907', '3029', 'w', '333', 'r', '9715', 'W', 3489, 'm', 3031, 3275], [4271, 4287, 7987, 1629, 'I', 'P', 9705, 'I', '3907', '3029', 'w', '333', 'r', '9715', 'n', 'H', 4099, 4337, 'D']
Student:
I, 3907, 3029, w, 333, r, 9715