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

Example Input: ['x', 495, 'L', 'O', 2935, 'y', 163, 3507, 6515, '5249', '9751', '8269', '923', '10005', '9739', 'u', 'X', 'y', '4535', 'I', 'V', 'f', '8511', '8955', 's', '2255', '1', '7831', 't', 'w', 1985, 'F', 'V', 5375, 6359, 7963, 4103, 2625, 'p', 'N', 7945, 'L', 6909], [251, 'J', 'k', 4075, 'd', 'x', 'j', 'K', 'u', 605, 1667, 8527, 6845, 2537, 'O', 9259, 'o', 'B', '5249', '9751', '8269', '923', '10005', '9739', 'u', 'X', 'y', '4535', 'I', 'V', 'f', '8511', '8955', 's', '2255', '1', '7831', 't', 'j', 'S', 'H', 1289]
Example Output: 5249, 9751, 8269, 923, 10005, 9739, u, X, y, 4535, I, V, f, 8511, 8955, s, 2255, 1, 7831, t

Example Input: [1231, 'a', 9367, '155', 'r', '1473', '5679', '3161', 'L', 'e', 'b', 'm', '9427', '2001', '5293', '3487', 'K', '6467', 'S', 'e', 6603, 'm', 8145, 'L', 's', 1273, 9291, 'X'], [5773, 'D', 'W', 'F', 5987, 'D', 'H', 2095, 'I', 'X', 29, '155', 'r', '1473', '5679', '3161', 'L', 'e', 'b', 'm', '9427', '2001', '5293', '3487', 'K', '6467', 'S', 'C', 'a']
Example Output: 155, r, 1473, 5679, 3161, L, e, b, m, 9427, 2001, 5293, 3487, K, 6467, S

Example Input: [5831, 'v', 7515, 8449, 'h', 2207, 2329, 'I', '9895', 'E', 'V', 'C', 'H', '8681', 'S', 'z', '8427', '247', '9735', 'F', '1487', '2097', '2185', 'q', '5109', '4085', 'a', 'H', 'Q', '6909', 'M', 'c', 'd', 'h', '5407', '6847', '5067', 'G', 7145, 9817, 'C', 'v', 'x', 9815, 1231, 'F', 'z', 'J', 'R', 'k', 'J', 'l', 8529, 3509, 'O', 'J', 'B', 2175, 'x'], ['G', 'H', 'l', 'I', 'J', 'I', '9895', 'E', 'V', 'C', 'H', '8681', 'S', 'z', '8427', '247', '9735', 'F', '1487', '2097', '2185', 'q', '5109', '4085', 'a', 'H', 'Q', '6909', 'M', 'c', 'd', 'h', '5407', '6847', '5067', 'K', 351, 7169, 6301, 'O', 9899, 599, 'K', 'V', 'C', 'P', 'v', 'C', 1319, 'n', 9793, 'o', 'z']
Example Output:
I, 9895, E, V, C, H, 8681, S, z, 8427, 247, 9735, F, 1487, 2097, 2185, q, 5109, 4085, a, H, Q, 6909, M, c, d, h, 5407, 6847, 5067