What are the answers to both questions and what is the difference between the two?

The sum of two nonnegative numbers is 25. Find the two numbers so that the sum of the first plus the square of the second is a minimum.The sum of two nonnegative numbers is 25. Find the two numbers so that the sum of the first plus the square of the second is a maximum.