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: [8843, 'P', 8865, 795, 3537, 4897, 'm', 777, 'i', 9905, 'D', 4731, 3565, 'b', 6017, 7063, 'W', '1589', 'E', 'x', 'D', '4101', 'R', 'o', 'o', '6041', 'j', '3937', '3293', 'w', '5171', 'h', '6227', 'S', '2027', 'U', 'w', 9005, 'I', 'f', 'E', 'A', 'E', 'j', 3671, 'v', 'v', 'O', 4653, 4407], ['I', 3297, 2375, 'm', '1589', 'E', 'x', 'D', '4101', 'R', 'o', 'o', '6041', 'j', '3937', '3293', 'w', '5171', 'h', '6227', 'S', '2027', 'U', 'l', 'e', 'j', 'H', 6493, 2733, 'j', 1841, 'f', 'i', 'F', 7167, 'E', 275, 'I', 1075, 3791, 9807]
Solution:
1589, E, x, D, 4101, R, o, o, 6041, j, 3937, 3293, w, 5171, h, 6227, S, 2027, U