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: [1541, 755, '3387', 'w', 'T', '5171', '6529', '6511', '6285', '6579', 'N', 'T', 'Q', 'N', 'J', 3385, 5879, 363], [6487, 'o', 8989, 7995, 'c', 9993, 1613, 'Q', 2333, '3387', 'w', 'T', '5171', '6529', '6511', '6285', '6579', 'N', 'S', 3117, 'F', 'E', 'O', 9133, 7653, 4201]
A:
3387, w, T, 5171, 6529, 6511, 6285, 6579, N