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: ['U', 'k', 9983, 'e', 3231, 'p', 6447, 'e', 'p', 3397, 4001, 'O', 'f', 5975, 'Z', 'K', 'b', '1019', '1629', 'D', 'I', '6197', 'K', '7967', 'B', '7205', 'V', '6793', '1069', 'G', '7983', '8937', '417', '8497', '7595', 'F', 's', 'Q', 'Z', 'M', 'R', '5825', '8609', '3475', 's', 5723, 6049, 2563], [521, 7717, 8779, 'n', 5309, 9767, 423, 6511, 'I', 'X', 'N', 1639, 'B', 'o', 4267, 'T', 'b', '1019', '1629', 'D', 'I', '6197', 'K', '7967', 'B', '7205', 'V', '6793', '1069', 'G', '7983', '8937', '417', '8497', '7595', 'F', 's', 'Q', 'Z', 'M', 'R', '5825', '8609', '3475', 'z', 5615, 4493, 6435, 'H', 767, 7445, 'y', 1211, 5703, 'o']
A:
b, 1019, 1629, D, I, 6197, K, 7967, B, 7205, V, 6793, 1069, G, 7983, 8937, 417, 8497, 7595, F, s, Q, Z, M, R, 5825, 8609, 3475