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: [9515, 9087, 2985, 981, 'W', 4783, 'N', 373, 5555, 'a', 'm', 1647, 2125, 'K', '879', 'p', '227', 'o', 'f', '9869', '2207', '7699', '4929', '861', 'E', 'm', 'N', '7669', 'E', 'V', '3695', '4337', '4717', 'X', '451', '4359', 'e', '7079', '9635', 'c', 'B', 8519, 4865, 7019, 'y', 'r', 2353, 4047, 4037, 3523, 951, 'Z'], ['K', 2035, 'A', 'G', 'a', 7757, 'S', 7165, 7331, 2789, 's', 9287, 'd', 983, '879', 'p', '227', 'o', 'f', '9869', '2207', '7699', '4929', '861', 'E', 'm', 'N', '7669', 'E', 'V', '3695', '4337', '4717', 'X', '451', '4359', 'e', '7079', '9635', 'c', 'N', 8325, 7779, 'f', 'V', 6701, 'Z', 6545, 2389, 4201, 8829, 'K', 9103, 'F', 'C', 3835, 8249, 'e', 567, 'i', 2605, 2201]
A:
879, p, 227, o, f, 9869, 2207, 7699, 4929, 861, E, m, N, 7669, E, V, 3695, 4337, 4717, X, 451, 4359, e, 7079, 9635, c