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