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