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