Task: Program Execution
Input (English): [1, 7, 1, 2, 6, 3, 2, 1, 8] , [3, 8, 8, 9, 4, 6, 1, 5, 7]
Output (English): [1, 3, 6, 7, 8]