# An straight line passes through points (2,4) and (-1,-5). What is its equation.

### 1 Answer | Add Yours

The equation of the line that passes through the points can be given as y = mx+c.

gradient(m) `= (4-(-5))/(2-(-1)) = 9/3 = 3`

So the equation of the line will be `y = 3x+c.`

This line passes through point (2,4).

`4 = 3xx2+c`

`c = -2`

*So the equation of the line is `y = 3x-2` .*