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: ['m', 2631, 'y', 7339, 'G', 1431, 757, 'Q', 'l', 6477, 9829, 'P', 'X', 'b', 'P', 'S', 'G', '4683', '4967', '4725', 'v', '5925', 'm', '5985', 'G', 'N', 'u', '5389', '2055', '7089', '5683', 'N', 'K', '851', 'n', '6631', 'D', '8967', 'Z', '865', 'J', 'S', 'e', 4499, 'y', 31, 'L', 4713, 'T', 6611, 'k', 3241, 'N', 'T', 'z', 'y', 7195, 'p'], ['k', 'h', 'T', 'r', 'r', 'p', 3195, 'G', 'w', 'a', 'D', 'h', 'o', 'Y', 5571, 'T', 'Y', 'S', 'G', '4683', '4967', '4725', 'v', '5925', 'm', '5985', 'G', 'N', 'u', '5389', '2055', '7089', '5683', 'N', 'K', '851', 'n', '6631', 'D', '8967', 'Z', '865', 'H', 1869, 'U', 2021, 1643, 'w', 9181, 367, 'x', 'S', 'o', 'P', 4505, 6337, 'y']
Solution:
S, G, 4683, 4967, 4725, v, 5925, m, 5985, G, N, u, 5389, 2055, 7089, 5683, N, K, 851, n, 6631, D, 8967, Z, 865