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