If I have a relation in Vertex form, how do I make it into standard form?

y = a(x-h)^2 + k into y = ax^2 + bx +c

Example questions:

a) y = 5(x+3)^2 -2

b) y = 2x(5-2x)+7

I'm not exactly looking for the answers, I just want to understand HOW to solve these.

Please help!

----------------------

heres my solution to question a, if you could advise me that would be much appreciated!

y = 5(x+3)^2 -2

= 5(x^2+9x-9)-2

= 5(x^2+9x)-2+9

= 5x^2 + 9x + 7