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