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: ['C', 'c', 'u', 'B', 9975, 9349, 1653, 'f', 5539, 'C', 7383, 6997, '6551', 'b', 'P', '955', 'h', '5449', 'C', '851', '2193', 'i', 'd', 'I', '83', '7547', 'e', '1035', 'D', '5667', 'w', '6155', 'O', '3267', '4651', 'O', 7027, 6533, 8353], ['x', 'D', 9933, 'u', 8577, 9213, 3015, 1269, 9513, 'R', 7577, 4275, 'm', 'i', 273, 'R', 'j', 2955, 8099, 'B', 'V', 9375, '6551', 'b', 'P', '955', 'h', '5449', 'C', '851', '2193', 'i', 'd', 'I', '83', '7547', 'e', '1035', 'D', '5667', 'w', '6155', 'O', '3267', '4651', 'b', 'u', 4805, 6831, 'm', 'w', 'B', 'l', 'u', 'Y', 5941, 8639, 'A', 3961, 'm', 4861]
A:
6551, b, P, 955, h, 5449, C, 851, 2193, i, d, I, 83, 7547, e, 1035, D, 5667, w, 6155, O, 3267, 4651