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: [2823, 'u', 'L', 'J', 5581, 'a', 23, 8551, 'w', 'A', 5051, '7389', 'F', 'd', 'o', 'J', '9929', 'V', '8683', 'L', '2341', 'p', '2643', 'a', 'z', '2601', '5739', 'A', 'K', '7217', '2377', 'N', 'z', 'm', 'B', '6735', 's', '6305', '5221', 'o', 'w', 7323, 4631, 6247, 'B', 'G', 'H', 'j', 8633, 'F', 3957, 4481, 'q', 8315, 'S', 'o', 773, 9327, 761, 'b', 'F', 347, 6615, 'r', 7317, 3583, 'X', 'q'], ['M', 'U', 'a', 9061, 'G', 6803, 'r', 'N', 6811, 2175, 9301, '7389', 'F', 'd', 'o', 'J', '9929', 'V', '8683', 'L', '2341', 'p', '2643', 'a', 'z', '2601', '5739', 'A', 'K', '7217', '2377', 'N', 'z', 'm', 'B', '6735', 's', '6305', '5221', 'o', 'Z', 'k', 6621, 'E', 'h', 7985, 'J', 2407, 487, 'E', 527, 'G']
A:
7389, F, d, o, J, 9929, V, 8683, L, 2341, p, 2643, a, z, 2601, 5739, A, K, 7217, 2377, N, z, m, B, 6735, s, 6305, 5221, o