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