write an equation for this

The equation for the line is y = 3x - 10.
Solution:
Take two points on the graph of the line.
Let the points are (4, 2) and (2, -4).
Here, [tex]x_1=4, y_1=2, x_2=2, y_2=-4[/tex].
Slope of the line:
[tex]$m=\frac{y_2-y_1}{x_2-x_1}[/tex]
[tex]$m=\frac{-4-2}{2-4}[/tex]
[tex]$m=\frac{-6}{-2}[/tex]
m = 3
Point-slope formula:
[tex]y-y_1=m(x-x_1)[/tex]
[tex]y-2=3(x-4)[/tex]
y - 2 = 3x - 12
Add 2 on both sides, we get
y = 3x - 10
The equation for the line is y = 3x - 10.