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: [4851, 'b', 't', 3439, 'K', 'b', 3147, 2671, 'e', 'y', '3273', 'U', '6729', '5707', 'x', 'r', '9885', '9819', 'f', 'K', '9175', 'H', 'y', 'c', 8459], ['I', 'P', 'e', 'y', '3273', 'U', '6729', '5707', 'x', 'r', '9885', '9819', 'f', 'K', '9175', 'S', 'v', 5349, 'c', 9237, 4033, 6995, 3411, 9987, 8631]
A:
e, y, 3273, U, 6729, 5707, x, r, 9885, 9819, f, K, 9175