In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
One example is below.
Q: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
A: 8297, b
Rationale: 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'].
Q: [6301, 'L', 1453, 2675, 'O', 'C', 'd', 'x', 8559, '2927', 'h', '9949', 'H', '8913', '8263', 'f', '8965', 'p', 'f', 3977, 9621, 'n'], ['v', 679, 'n', '2927', 'h', '9949', 'H', '8913', '8263', 'f', '8965', 'p', 'i', 'p', 147, 3161, 7559, 'H']
A:
2927, h, 9949, H, 8913, 8263, f, 8965, p