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: ['e', 'K', 'N', 't', 6483, 5505, 'M', 'S', 'L', 'C', 9447, 'X', 2327, 8843, 9205, 'n', 'e', 'C', 6839, 3131, 5341, 4667, 9633, 5825, 'H', 'm', 9799, '4489', '535', 'C', 'g', '8941', 'H', '6147', '8371', '5907', 'g', 'F', '75', '3521', '5491', '6821', 'x', 'U', 'E', 'm', '5683', 'b', 'k', 'L', '6963', '1415', 'H', 'J', 'a', 'e', 'D', 'k', 'n', 't', 'z', 'm', 6785, 7463, 4693, 'Q', 4795, 6203, 8831, 'e', 8481, 8731, 8505, 'B'], [4329, 3013, 8673, 'Y', 3179, 'P', 1709, 335, 'u', 8731, 'g', 'r', 7375, 'R', 285, 'p', 'd', 'I', 'x', 'C', 'n', 6719, 1795, '4489', '535', 'C', 'g', '8941', 'H', '6147', '8371', '5907', 'g', 'F', '75', '3521', '5491', '6821', 'x', 'U', 'E', 'm', '5683', 'b', 'k', 'L', '6963', '1415', 'H', 'J', 'm', 3365, 'J', 'W', 6681, 9101, 'V']
A:
4489, 535, C, g, 8941, H, 6147, 8371, 5907, g, F, 75, 3521, 5491, 6821, x, U, E, m, 5683, b, k, L, 6963, 1415, H, J