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