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: [945, 4585, 'o', 3241, 2939, 'R', 4527, 4165, 9787, 'g', 'r', 'Z', 'Z', 795, 6339, 'z', 'l', 975, 'Z', 'E', 2271, 'N', 'j', 'B', '3109', '3433', '4567', 'J', '6531', '8439', '7195', '2965', '2541', 'c', 'U', 'l', '4399', 'o', '4555', 'A', '5377', '509', 'A', 'S', '1045', '423', '6507', '795', '1819', 'Q', 'x', 'I', 3515, 'Q', 1753, 8335, 'I', 9425], ['W', 'w', 't', 'k', 6657, 'a', 6467, 'N', 'j', 'B', '3109', '3433', '4567', 'J', '6531', '8439', '7195', '2965', '2541', 'c', 'U', 'l', '4399', 'o', '4555', 'A', '5377', '509', 'A', 'S', '1045', '423', '6507', '795', '1819', 'Q', 'x', 'S', 'u', 1253, 2295, 'R', 473, 'n', 'X', 5587, 8371, 'Z', 419, 's', 9749, 9781, 'u', 'a', 'L', 6299, 6293, 7753, 3093, 'F', 4905]
Solution:
N, j, B, 3109, 3433, 4567, J, 6531, 8439, 7195, 2965, 2541, c, U, l, 4399, o, 4555, A, 5377, 509, A, S, 1045, 423, 6507, 795, 1819, Q, x