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: [5175, 'l', 6031, 'R', 'e', 'M', 7763, 9561, 'R', 'f', 'j', '8229', '867', 'Q', 'v', '1613', '2909', 'b', '8265', 'Y', 'g', '6381', 'b', '4643', 'd', 5855, 9991, 'G', 'r', 8999, 7491, 8117], [2841, 'p', 'd', 2963, 'L', 'a', 3273, 'B', 'j', '8229', '867', 'Q', 'v', '1613', '2909', 'b', '8265', 'Y', 'g', '6381', 'b', '4643', 'R', 9725, 7197, 6045, 'a', 5959, 'n', 7895, 'Z']
Student:
j, 8229, 867, Q, v, 1613, 2909, b, 8265, Y, g, 6381, b, 4643