If you know the coordinates of the vertex the equation would be the best.
In both cases you know the coordinates of the vertex and the coordinates of one additional point. I'm going to do f so you can try to do e:
You know: V(2, 2) and P(0, 6). Plug in these coordinates:
. Thus your equation becomes: