When at least two points are given, we can determine a linear equation in slope-intercept form corresponding to those points. The key is to obtain the slope and y-intercept.
Tutorial 33: How to Determine the Slope-Intercept Linear Equation of a Line given Two Points
Example:
(1,0) and (2,4)
Determine the slope between the two given points. Use the rise over run formula. Consider the second coordinate to be the one further along the x axis.
Now it’s time to find the y-intercept (b). To do so, plug m and x/y from one of the two given points into the general slope-intercept form. Isolate and solve for b.