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: ['M', 3541, 'x', 'f', 'Q', 'c', '6659', '2737', 'b', 'J', '9549', '1045', '93', '2363', '4665', 'y', '4791', '713', '8259', '2255', 'f', 'm', 'w', '7005', '4197', '447', '2535', '4643', 'C', 'w', '8825', 'K', 'z', 'I', 'p', 'B', 'm', 7299, 285, 4173, 'n', 8777, 5077], [3439, 437, 'K', 6635, 8009, 7067, 'v', 3977, 'Q', 5565, 'F', 'Q', 'c', '6659', '2737', 'b', 'J', '9549', '1045', '93', '2363', '4665', 'y', '4791', '713', '8259', '2255', 'f', 'm', 'w', '7005', '4197', '447', '2535', '4643', 'C', 'w', '8825', 'K', 'z', 'f', 'H', 'H', 5137, 7229, 9713, 't', 2091, 'Y', 'Y', 'F', 'F', 167, 'o', 8161, 9793, 'E', 'O', 9519, 3791, 'c', 3271, 'D', 'n', 7749, 'Y']
A:
Q, c, 6659, 2737, b, J, 9549, 1045, 93, 2363, 4665, y, 4791, 713, 8259, 2255, f, m, w, 7005, 4197, 447, 2535, 4643, C, w, 8825, K, z