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: [3877, 'H', 'p', '2285', '10005', '5771', 'p', 'U', 'q', '2941', 'Q', '9297', 'B', '5855', '4953', 'X', '2833', '9637', '7219', '8841', 'Z', 'e', 'Q', 8171], [2191, 'Q', 6735, 8207, 6295, 1985, 2631, 'S', 'n', 'd', 3031, 'd', 6311, 4837, '2285', '10005', '5771', 'p', 'U', 'q', '2941', 'Q', '9297', 'B', '5855', '4953', 'X', '2833', '9637', '7219', '8841', 'Z', 'e', 't', 6609, 7023, 1569, 9147]
Student:
2285, 10005, 5771, p, U, q, 2941, Q, 9297, B, 5855, 4953, X, 2833, 9637, 7219, 8841, Z, e