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