This is an important point.
You have to remember that when a function has a restricted domain (

in this case) then maxima and minima can occur at the endpoints of the interval.
This is much easier to see if you sketch the graph of the function in the question (which you can do since you have the turning points and the
x- and
y-axis intercepts).
If you do this you'll see a maximum turning point at

, giving the answer which you said.
As for the minimum, you're looking for where the graph has the smallest
y-value it can
but you're only allowed to have

. This boils down to you evaluating

and

. Which ever is the smallest is the minimum value (you can see this by your sketch - the only place it can be smallest is at one of the endpoints of the interval).
Hope this helps.