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