Could some please help me with this math question

For this case we have that the equation of a line of the slope-intersection form is given by:[tex]y = mx + b[/tex]
Where:
m: It's the slope
b: It is the cut-off point with the y axis
To find the slope we look for two points through which the line passes:
We have to:
[tex](x1, y1) :( 1,2)\\(x2, y2): (- 1, -4)[/tex]
Thus, the slope is:
[tex]m = \frac {-4-2} {- 1-1} = \frac {-6} {- 2} = 3[/tex]
We have then:
[tex]y = 3x + b[/tex]
Substituting a point in the equation to find b:
[tex]2 = 3 (1) + b\\2 = 3 + b\\b = 2-3\\b = -1[/tex]
Finally, the equation is:[tex]y = 3x-1[/tex]
Answer:
Option D