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: ['z', 2679, 2175, 2825, 4389, '1307', 'y', '3773', 'n', '5757', 'T', '777', 'I', '5913', 'A', '7575', '1463', '7977', 'v', 'I', '8851', 'a', '3781', 'M', '7869', 'Z', '6315', '4381', '5227', '375', 'o', 'P', 'I', 'Y', 'v', 7015, 9501, 8727, 3059, 2817, 1259, 's', 1489, 6451, 'F', 4577, 'b', 'O', 'q', 3263, 'U', 993, 'q', 'e', 'a'], ['q', 8297, 'S', 'W', 7387, 9253, 3585, 9711, 1031, 'g', 4785, 8551, 4697, 'K', 6153, 8393, 6237, 8495, 'T', 2871, 9143, 5755, 'p', 4259, '1307', 'y', '3773', 'n', '5757', 'T', '777', 'I', '5913', 'A', '7575', '1463', '7977', 'v', 'I', '8851', 'a', '3781', 'M', '7869', 'Z', '6315', '4381', '5227', '375', 'o', 'P', 'q', 6801, 'I', 3701, 3277, 5659, 'X', 'q', 1547, 7217, 'E', 8091, 6117, 8349, 7657, 'g', 's']
A:
1307, y, 3773, n, 5757, T, 777, I, 5913, A, 7575, 1463, 7977, v, I, 8851, a, 3781, M, 7869, Z, 6315, 4381, 5227, 375, o, P