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