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: [5975, 4627, 931, 1087, 'y', 5733, 'a', 9287, 'P', 'j', 2829, 777, 7515, 3117, 'w', 4069, 'S', '1079', 'm', '9017', '2333', 'X', 'a', 'K', 'X', 'q', 'U', 'm', '5753', 'w', 'R', '7349', '4365', '5689', 'A', '4147', 'a', 'D', 773], ['b', 7743, 'z', 5721, 8623, 's', 'Y', 'S', 1527, 6125, 5041, 6229, 8459, 'x', '1079', 'm', '9017', '2333', 'X', 'a', 'K', 'X', 'q', 'U', 'm', '5753', 'w', 'R', '7349', '4365', '5689', 'A', '4147', 'a', 'g', 'O', 'q', 5995, 2753, 'R', 8077, 'Q', 929, 8931, 'n', 2925, 'M']
Student:
1079, m, 9017, 2333, X, a, K, X, q, U, m, 5753, w, R, 7349, 4365, 5689, A, 4147, a