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

Example Input: ['Y', 7191, 'w', 'I', 2387, 3493, 'F', 9797, 4797, '1075', 'i', '2867', '6269', 'X', '8729', 'u', 'X', 'g', '8731', 'L', '3791', 'I', '6677', 'x', 'p', 5525, 3953, 1931, 6723, 7597, 9781, 8621, 'f', 6959, 4341, 5543], [7099, 'h', 'm', 1247, 'F', 2321, 'G', 'c', 'a', 57, 7997, 'Y', '1075', 'i', '2867', '6269', 'X', '8729', 'u', 'X', 'g', '8731', 'L', '3791', 'I', '6677', 'x', 'd', 'k', 3051, 647]
Example Output: 1075, i, 2867, 6269, X, 8729, u, X, g, 8731, L, 3791, I, 6677, x

Example Input: ['J', 'b', 'R', 'v', 6421, 'i', 4179, '3583', '7897', '9525', 'b', '4163', '5465', '255', '5923', 't', 9093, 9035, 8487], ['V', 'j', '3583', '7897', '9525', 'b', '4163', '5465', '255', '5923', 'F', 6281, 8109, 'R', 2589]
Example Output: 3583, 7897, 9525, b, 4163, 5465, 255, 5923

Example Input: [4905, 'l', 'o', 6877, 'Q', 'S', 3439, 'q', 'e', 'D', 'a', 5539, 'Q', 'a', '2805', '727', '1541', 'k', '8699', 's', '2425', 'Y', 'u', '2609', 'U', 'w', 1647, 'B', 'g', 4177, 3473, 'N'], [6067, 6819, 2517, 'Q', 'a', '2805', '727', '1541', 'k', '8699', 's', '2425', 'Y', 'u', '2609', 'X', 8437, 1187, 'b', 'k', 'i', 5617, 1289, 'B', 'E', 7699]
Example Output:
Q, a, 2805, 727, 1541, k, 8699, s, 2425, Y, u, 2609