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