Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [6987, 'F', 'j', 'E', 'P', 947, 823, 'P', 4655, 'C', 'l', 'R', 'z', 5705, 'I', 'H', 'y', 2167, 7443, 'E', 'F', 'd', '567', '1385', 'd', '1013', 'Q', '3983', '5891', '6397', '1701', 'd', 'v', 'N', '4551', '9415', '5691', 'n', '3435', '1485', 'u', 'Q', '3191', 'D', 'y', 665, 'P', 'k'], [4453, 'F', 'b', 1309, 'm', 'H', 'd', '567', '1385', 'd', '1013', 'Q', '3983', '5891', '6397', '1701', 'd', 'v', 'N', '4551', '9415', '5691', 'n', '3435', '1485', 'u', 'Q', '3191', 'p', 'f', 7091]
Output:
d, 567, 1385, d, 1013, Q, 3983, 5891, 6397, 1701, d, v, N, 4551, 9415, 5691, n, 3435, 1485, u, Q, 3191