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: [9463, 8661, 51, 'y', 'w', '6415', '6809', 'r', 'o', 'm', '4017', 'Y', 'h', 'B', 'A', '5621', 'G', 'f', 109, 't', 'q', 3023, 'I', 'S', 'V', 'Z', 'g', 221], [587, 7081, 'u', 'y', 'w', '6415', '6809', 'r', 'o', 'm', '4017', 'Y', 'h', 'B', 'A', '5621', 'A', 'g', 4133, 8851, 4439]
Student:
y, w, 6415, 6809, r, o, m, 4017, Y, h, B, A, 5621