Answer :

Compute the slope as a = (y2-y1) / (x2-x1).
Compute the intercept as b = y1 - a × x1.
The equation you need reads y = a × x + b, with a an b computed as above.

Other Questions