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