we have a test tomorrow and she said that a problem like this is going to be on there how do you do it????

Consider the parabola that passes through the points (2,6)(-1,12) and (0,6)
Find the equation and the vertex

EQUATION: 1.) find slope:

m = y2-y1/x2-x1
m = 12-6/(-1)-2
m = 6/(-3)
m = -2
2.) find y- int: chose any point
y = mx + b
6 = (-2)2 + b
6 = -4 + b
6 + 4 = b
10 = b
therefore equation of line is:
y = -2x + 10