Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [3531, 'J', 'p', 9115, 6943, 2873, 2137, 4159, 2127, 9815, 9353, 'B', 'F', 'I', 5137, 1265, 3573, 4069, 397, 4965, 1127, 'j', 'L', 1879, 'G', '1717', '5905', 'y', 'I', 'v', '9669', 'l', 'w', '583', '6627', 'f', '9771', 'R', '109', '5109', '10007', '5285', 'h', '8911', '7273', 'H', '8405', '6119', '863', '4273', '4455', 'c', 'd', 8121, 4345, 'z', 'e', 'U', 7145, 'P', 4589, 'n'], [9819, 'q', 'O', 'S', 'E', 'n', 'v', 'c', 2205, 'f', 'i', 'z', '1717', '5905', 'y', 'I', 'v', '9669', 'l', 'w', '583', '6627', 'f', '9771', 'R', '109', '5109', '10007', '5285', 'h', '8911', '7273', 'H', '8405', '6119', '863', '4273', '4455', 'c', 'v', 3133, 4407, 'h', 'n', 'W', 'X', 1455, 8987, 9853, 's', 'n', 1683, 'E', 'I', 4079, 'g']
Output:
1717, 5905, y, I, v, 9669, l, w, 583, 6627, f, 9771, R, 109, 5109, 10007, 5285, h, 8911, 7273, H, 8405, 6119, 863, 4273, 4455, c