Answer:
First find the slope using the formula
m = (Y2 - y1)/(x2 - x1)
(x1, y1) = (0,6)
(x2, y2) = (2,10)
m = (10-6)/(2-0)
m = 4/2
m = 2
Now we need the y-intercept or b
y = mx + b
y = 2x + b
Use one of the coordinates for x and y. It doesn't matter which you choose
6 = 2(0) + b
6 = 0 + b
6 = b
Now let's put it together for the equation :
y = 2x + 6