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: ['E', 6337, 5815, 'd', 'v', 'N', 2877, 447, 8493, 8477, 'J', 8615, 1783, 'Z', 2725, 5495, 6071, '5643', '5017', '3933', '7717', '3055', '755', 'd', '1125', '3569', '655', '277', '8919', '1035', '2473', '4363', 's', '6943', 'g', '8261', 'B', 'X', 2177, 8321, 5321, 3925, 'i', 5193, 'u', 'E', 'd'], ['M', 'i', 'O', 6203, 8839, 4273, 'O', 'c', 'B', 1951, 'I', 7513, '5643', '5017', '3933', '7717', '3055', '755', 'd', '1125', '3569', '655', '277', '8919', '1035', '2473', '4363', 's', '6943', 'g', '8261', 's', 6847, 'E', 'b', 'b', 6885, 9663, 'n', 8293, 5061, 3205, 1843]
A:
5643, 5017, 3933, 7717, 3055, 755, d, 1125, 3569, 655, 277, 8919, 1035, 2473, 4363, s, 6943, g, 8261