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: ['M', 't', 'N', 8961, 7157, 'd', 'b', 9055, 'a', '8231', 'A', '707', '1361', '4643', 'u', '5249', 'W', 'k', 2289, 1437, 'J', 'm', 9315], [9879, 'v', 8035, 6263, 8993, 3945, 'a', 'a', '8231', 'A', '707', '1361', '4643', 'u', '5249', 'c', 161]
Student:
a, 8231, A, 707, 1361, 4643, u, 5249