Answer:
y = 3x + 1
Explanation:
You have to use y = m x + c to find the equation of the line.
Here,
m ⇒ slope
c ⇒ y - intercept
First let us find the slope by using the below formula.
For that, let us use the given coordinates.
( -1 , -2 ) ⇒ ( x₁ , y₁ )
(-2 , -5) ⇒ ( x₂ , y₂ )
m =

m =

m =

m =

m = 3
Now we have to find the y - intercept.
For that we can use any coordinate for that.
Let us use ( -1 , -2 ) coordinate.
y = m x + c
-2 = 3 × -1 + c
-2 = -3 + c
- 2 + 3 = c
1 = c
Let us write the equation of the line now.
y = m x + c
y = 3 x + 1
Let me know if you have any other questions. :-)