Step-by-step explanation:
Let's first find the slope
(-5-2)/(5--1) = -7/6
the equation should be
[tex]y = \frac{ - 7}{6} x + c[/tex]
To find c, we replace X with -1 and Y with 2
c= 5/6
So the equation is
[tex]y = \frac{ - 7}{6} x + \frac{5}{6} [/tex]
And if you multiply everything by 6 you get
6y = -7x +5