9th grade here! I need help with a problem.. this is it:

[Question]

Write y=a(x-h)^2+k and y=a(x-p)(x-q) in standard form. Knowing the

vertex of the graph of y=ax^2 + bx +c occurs at x=-b/2a, show that the vertex of the

graph of y=a(x-h)^2+k occurs at x=h and that the vertex of the graph of y=a(x-p)(x-q)

occurs at x=p+q/2.

This is how far I got:

y= a(x-h)^2+k

>a(x^2-2xh-h^2)+k

>y=ax^2-a2xh-ah^2+k

>y=ax^2+(-2ah)x+(-ah^2=k)

a=a b=-2ah c=ah^2+k

>Next part:

>a(x-p)(x-q)

>a(x^2-qx-px+pq)

>y=ax^2-aqx-apx+apq

I'm stuck here, how to I arrange it to be standard form?