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