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? If you are still confused, see the following example:
[5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Solution: 8297, b
Reason: Here, '8297, b' is the longest common subsequence in both the input lists [5797, 8817, '8297', 'b', 'U', 'b'] and [5843, 8809, '8297', 'b', 'W', 'C'].

Now, solve this instance: ['u', 9543, 5771, 5687, '5957', 'Z', '541', 'u', 'X', 'c', '5225', 'P', 'Q', '4997', '1865', 's', 2467, 8719, 'X', 'b'], [1367, 6367, 'Z', 'm', 5863, 8805, 5877, 'C', 8351, 'C', 'o', '5957', 'Z', '541', 'u', 'X', 'c', '5225', 'P', 'Q', '4997', '1865', 'T', 8025, 167, 'v', 7471, 6891]
Student:
5957, Z, 541, u, X, c, 5225, P, Q, 4997, 1865