Equation of a line: y=mx+b
Points: (-2,0) and (1,2)
As a first step, you have to calculate the slope of the line:
Now, by the point-slope form of the line equation:
*You can use any of the two points.
Y-Y0=m(X-X0)
Y-2=2/3(X-1) ---> This is the point-slope form
Y-2=2/3X-2/3
Y=2/3X+4/3