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