Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['w', 1411, 557, 'f', 'A', 'X', 'W', 'K', 2125, 8277, 'N', 'z', 9983, 8549, 'p', 'P', 'c', 'W', 'r', 'u', 309, 8697, 6421, 'x', 'I', '9333', 'y', 'R', '1791', 'B', '4763', 'D', '8423', '1469', 'H', 'L', '6523', 'k', 'M', '4175', '4639', '4733', '4395', '6821', 'c', '1551', 'r', '907', '8429', '2411', 'F', '3719', 'W', 4519, 9163, 1191, 'x'], [6863, 3563, 8699, 'G', 'x', 'I', '9333', 'y', 'R', '1791', 'B', '4763', 'D', '8423', '1469', 'H', 'L', '6523', 'k', 'M', '4175', '4639', '4733', '4395', '6821', 'c', '1551', 'r', '907', '8429', '2411', 'F', '3719', 'V', 35, 'C', 6001, 'n', 2971, 8823, 'B', 'P', 'm', 'p', 'K', 6067, 'Q', 'S', 'E', 5781, 5529, 'b', 'X']
Output:
x, I, 9333, y, R, 1791, B, 4763, D, 8423, 1469, H, L, 6523, k, M, 4175, 4639, 4733, 4395, 6821, c, 1551, r, 907, 8429, 2411, F, 3719