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