Question: what is the formula to find the equation?
Answer: Find the Equation of a Line Given That You Know Two Points it Passes Through. The equation of a line is typically written as y=mx+b where m is the slope and b is the y-intercept. If you know two points that a line passes through, this page will show you how to find the equation of the line.