In essence, any method you use is going to compute what you have there. The only equation for a line that I ever use is y = mx + b. For the case of two points on the line, I just plug both points into the y = mx + b equation to obtain two simultaneous equations. I solve that using any of the many valid methods, and then I'm done.