Function y=-x²+6x
First you need to start finding the values for y.
When x=0 you will have

And you have to do the same with the different values as follows:

As you can see in the graph, the function has a maximum in (3,9)
And the vertex is in the same point