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: ['d', 'L', 3691, 959, 'w', 'g', 3225, 4915, 4289, 'M', 'u', 'f', 3943, 'D', 'r', '517', 'K', 'p', 'F', '7603', 'd', '2175', 'x', '29', '8945', 'W', 'n', '159', '6307', '877', 'N', 'D', 'q', 'y', 1709, 'M', 9049, 4049, 491, 'm', 3273, 'F', 'v', 467, 'b', 5983, 'X', 'u'], [8145, 'H', 'r', '517', 'K', 'p', 'F', '7603', 'd', '2175', 'x', '29', '8945', 'W', 'n', '159', '6307', '877', 'N', 'D', 'q', 'o', 6255, 6777, 6227, 5857, 8765, 'D']
Solution:
r, 517, K, p, F, 7603, d, 2175, x, 29, 8945, W, n, 159, 6307, 877, N, D, q