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: [3871, 'X', 'K', 5667, '2267', '1881', 'V', '811', '1021', '1165', '309', 'J', 's', '4881', 'w', 4693, 3125, 'U', 1655, 505, 4111, 'd', 7571], ['u', 'w', 6061, 'v', 3363, 'z', 5471, 4205, 6819, '2267', '1881', 'V', '811', '1021', '1165', '309', 'J', 's', '4881', 'G', 3351]
A:
2267, 1881, V, 811, 1021, 1165, 309, J, s, 4881