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