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