In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Example input: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Example output: 8297, b
Example explanation: 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: [1095, 7449, 1383, 5485, 3931, 2709, 'D', 'm', 'b', 'h', 3449, 'r', 'c', 3315, 6709, 'J', 8129, 'Q', 5241, 7295, 3037, 8895, 6817, 437, 1307, '7555', 'g', 'A', 'm', 'M', '271', '2913', '9087', 'I', '1815', '6969', '2345', '3313', '2225', '4855', '6287', 'D', '8559', '2701', 'D', '6049', 'O', '1605', '2417', 'w', '409', 'N', 3531, 'S', 7911, 'i', 'g', 'O', 'w', 'f', 6061, 6885, 5763, 1711, 'O', 7383, 'e'], [4845, 9099, 1651, '7555', 'g', 'A', 'm', 'M', '271', '2913', '9087', 'I', '1815', '6969', '2345', '3313', '2225', '4855', '6287', 'D', '8559', '2701', 'D', '6049', 'O', '1605', '2417', 'w', '409', 'R', 8791, 1521, 'p', 8275, 2205, 2743, 8295]
A:
7555, g, A, m, M, 271, 2913, 9087, I, 1815, 6969, 2345, 3313, 2225, 4855, 6287, D, 8559, 2701, D, 6049, O, 1605, 2417, w, 409