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: ['L', 6541, 'f', '4087', '3983', 'J', 'l', '4641', '8013', 'T', '6083', 'B', '3817', 'V', 'q', 'I', 5687, 'e'], ['C', 'v', 6513, 3791, 'I', 'p', 'b', 'g', '4087', '3983', 'J', 'l', '4641', '8013', 'T', '6083', 'B', '3817', 'j', 1135, 'o', 2013, 'D', 4813, 2503, 9965]
A:
4087, 3983, J, l, 4641, 8013, T, 6083, B, 3817