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