In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Example: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Example solution: 8297, b
Example explanation: 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'].

Problem: [6815, 5159, 2851, 'C', 7811, 'v', 'm', 'T', '5897', 'm', '543', 'k', '3025', 'X', 'L', 'c', '4657', 'A', 'f', 4513, 'Q', 'M', 1297, 'y'], [2035, 'W', 1797, 6337, 'T', 'p', 'J', 'K', 4331, '5897', 'm', '543', 'k', '3025', 'X', 'L', 'c', '4657', 'A', 'j', 'y', 'c', 6039, 'g']

Solution: 5897, m, 543, k, 3025, X, L, c, 4657, A