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: [4483, 573, 'F', 3693, 'I', 'z', '4329', '619', '2115', 'O', '5547', '7315', '43', 'a', 'S', '5885', '5351', '8233', '8681', '339', 'j', 'L', 'H', 'c', '5007', 'S', 'u', 5059, 6809, 'v'], [3889, 'g', 1253, 's', 8407, 7393, 7391, 1649, 'e', 6301, 'G', 'o', 'n', 9019, 'G', 4283, 8931, '4329', '619', '2115', 'O', '5547', '7315', '43', 'a', 'S', '5885', '5351', '8233', '8681', '339', 'j', 'L', 'H', 'c', '5007', 'u', 9333, 'Y', 5225, 'r', 'E', 'D', 'f', 'M', 'U', 'p', 4995, 'W']
A:
4329, 619, 2115, O, 5547, 7315, 43, a, S, 5885, 5351, 8233, 8681, 339, j, L, H, c, 5007