You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

[5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Solution: 8297, b
Why? 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'].

New input: [8871, 7797, 4297, 785, 3071, 'm', 7313, 1305, 'z', 'd', 'd', 1761, 4803, 3949, 489, 'x', 'f', 6759, 3229, 4271, '315', 'G', 'I', 'f', 's', '7613', '7705', '9183', '9689', 'n', 'T', 'X', '611', '7591', '8725', '1401', 'F', '5469', 'c', 'd', '1021', '7791', '6885', '3737', '2789', '3243', 'e', 'Z', 'q', 3711, 9387, 1781, 1041, 'b', 5529, 'w', 'w', 's', 4731, 'w', 'k', 'x', 'r', 9767, 'c', 'o'], [6399, 7321, '315', 'G', 'I', 'f', 's', '7613', '7705', '9183', '9689', 'n', 'T', 'X', '611', '7591', '8725', '1401', 'F', '5469', 'c', 'd', '1021', '7791', '6885', '3737', '2789', '3243', 'z', 2951, 7851, 'y', 'Z', 'l', 7879, 1901, 7543, 'p', 4511, 'V', 's', 'e', 2669, 'L', 3705, 5559, 9705, 3465, 'D', 'K', 'J', 'd', 8105]
Solution:
315, G, I, f, s, 7613, 7705, 9183, 9689, n, T, X, 611, 7591, 8725, 1401, F, 5469, c, d, 1021, 7791, 6885, 3737, 2789, 3243