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