Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['G', 'y', 'X', 's', 'w', 'R', '2349', 'F', '2555', 'O', 'f', 'T', 'l', 'y', '6413', 'K', 'U', 'i', '2581', '4289', 'K', '9147', 'z', 'a', '2669', 'f', '2073', '593', 'A', 'W', '5329', '1729', 'd', '7315', '7635', 'Z', 'M', 'H', 'h', 7115, 'R', 4409, 'R', 3681, 4407, 'i', 2099, 9495, 'c'], [4929, 4161, 4539, 4951, 9795, 3997, 4593, 't', 'X', 3185, 4755, 8621, 'x', 'r', 5347, 6893, 'm', 'v', 6633, 'c', 1261, 6109, 3517, 't', 'u', 'P', '2349', 'F', '2555', 'O', 'f', 'T', 'l', 'y', '6413', 'K', 'U', 'i', '2581', '4289', 'K', '9147', 'z', 'a', '2669', 'f', '2073', '593', 'A', 'W', '5329', '1729', 'd', '7315', '7635', 'Q', 'l', 'd', 'J', 'O', 6893, 6257, 5747, 6385, 'q', 6731, 7353, 'o', 5051, 'B', 6847, 7879, 'j', 9495, 9683, 'p', 3263, 4515]
Output:
2349, F, 2555, O, f, T, l, y, 6413, K, U, i, 2581, 4289, K, 9147, z, a, 2669, f, 2073, 593, A, W, 5329, 1729, d, 7315, 7635