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: [301, 687, 5903, 'C', 8453, '4643', '5547', '1809', '5217', '1221', '7333', 'o', '2333', 'j', '5229', 'Q', '4527', '6251', 'E', 'q', '2721', '6399', '5187', 'A', 'm', 'c', '3365', '2381', '505', 'A', '951', '4255', 'p', 147, 'c', 'F', 'f', 4017, 369, 6851, 2335, 79, 'u', 'c', 8645, 'V', 'e', 6355, 'H', 6689, 663, 'O', 'K', 8171, 'o', 'R', 4037], [5803, 'O', 3641, 'A', 1687, 'w', 'm', 'C', 8621, 7849, 3095, 6071, 'a', 'S', 2573, 't', 1469, 'a', 8415, 'A', 'V', 4351, 8591, 'a', 'R', 'd', '4643', '5547', '1809', '5217', '1221', '7333', 'o', '2333', 'j', '5229', 'Q', '4527', '6251', 'E', 'q', '2721', '6399', '5187', 'A', 'm', 'c', '3365', '2381', '505', 'A', '951', '4255', 'F', 487, 'K', 'Y', 4011, 5509, 'U', 6355, 'l', 1475, 'K', 'N', 3701, 'Z', 'U', 375, 'a', 'T', 2225, 'l', 'e', 8561]
A:
4643, 5547, 1809, 5217, 1221, 7333, o, 2333, j, 5229, Q, 4527, 6251, E, q, 2721, 6399, 5187, A, m, c, 3365, 2381, 505, A, 951, 4255