Corey thinks of a number. He adds 25 to it then halves the result. Then he subtracts 17 and multiplies the result by 3. His final answer is 18.