A(-7,4) and B(0,6);
A(x₁,y₁) and B(x₂,y₂)
Equation form : y =mx+b
1st Calculate the slope m:
m=(y₂-y₁)/(x₂-x₁) = (6-4)/(0+7), m = 2/7
the equation becomes: y= 2/7.x +b
2nd Calculate b. to that end you plug any coordinates (either A or B) in the equation y=2/7.x + b:
Let's say I selected B(0,6)
6=2/7(0) +b and b =6
The final equation : y =(2/7).x + 6