Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [8769, 3681, 8871, 'a', 4085, 'M', 3491, 7957, '9957', 'c', '4533', '4465', 'Y', 'I', '1757', '4289', 's', 'z', '4283', 'D', 'g', 'b', '7931', 'n', '7341', '3797', 'm', 'P', 'X', 'f', '8621', 'l', '3349', '6705', 'I', 'k', 'E', 'R', 5085, 3949, 2529, 8049, 'Z', 8115, 2573, 'P', 9237, 6879, 'J', 2411, 1223, 'D', 'o', 'x', 'S', 'H', 6139, 6251, 'y', 'l', 5187, 'k', 'Y', 'L', 2317], ['I', 'Z', 'x', 9665, 1845, 4801, 2725, 'i', 'E', 2109, 2781, 2993, 4033, 'g', 'R', '9957', 'c', '4533', '4465', 'Y', 'I', '1757', '4289', 's', 'z', '4283', 'D', 'g', 'b', '7931', 'n', '7341', '3797', 'm', 'P', 'X', 'f', '8621', 'l', '3349', '6705', 'I', 'k', 'E', 'T', 'U', 2599, 'q', 8887, 'b', 7461, 'T', 7665, 'E', 'p', 'J', 'R', 'P', 'O', 8639]
Output:
9957, c, 4533, 4465, Y, I, 1757, 4289, s, z, 4283, D, g, b, 7931, n, 7341, 3797, m, P, X, f, 8621, l, 3349, 6705, I, k, E