# Finding equation of the line that passes though the two points

Find the equation of the line that passes though the points $(-2,5)$ and $(8,15)$ ?

General equation of the straight line function is $y=mx+c$, where m is slope.

$$m=\frac{y_2-y_1}{x_2-x_1}=\frac{15-5}{8-(-2)}=\frac{10}{10}=1$$If $m = 1$, then we have $y=x+c$. Now we can easy find c by inserting one of the given points coordinates to our equation.

$$15= 8 + c, \ \ c=7$$Answer: $y=x+7$

2020-11-29

### Comments

No comments at the moment

## Write a comment