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