In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Example Input: ['E', 'P', 'Z', '8337', 'L', '4245', 'M', 'M', 'H', '4531', 'B', 'p', '6961', 'x', 9461, 2587], [9027, 289, 2515, 'k', 'N', 'i', 9689, '8337', 'L', '4245', 'M', 'M', 'H', '4531', 'B', 'p', '6961', 'r', 'x', 737, 'a', 'w', 'K', 'S']
Example Output: 8337, L, 4245, M, M, H, 4531, B, p, 6961

Example Input: ['K', 1657, '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'X', 'n', 3631, 'o', 'm'], ['P', 6249, 7565, 's', 1041, 'V', 'D', '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'n', 'U', 'z', 2559, 5379, 6985, 6059]
Example Output: 5001, 8571, 2343, 9471, P, 6369, 9299

Example Input: [3763, 9505, 'a', 'X', 's', 8195, 4961, 6055, 'J', 'i', 'c', '3131', '9673', 'Q', '9611', '5113', 'm', 'b', '6201', 'O', '3207', 'Q', 'd', 'M', 3039, 2973, 'w', 8531, 9347, 8969, 'l'], [4079, 'F', 617, 'o', 'E', 3723, 'A', 113, 'i', 'a', 4865, '3131', '9673', 'Q', '9611', '5113', 'm', 'b', '6201', 'O', '3207', 'Q', 't', 7001, 'f', 'd', 549, 'b']
Example Output:
3131, 9673, Q, 9611, 5113, m, b, 6201, O, 3207, Q