To solve this problem, we have to start with the general formula for the equation of a straight line.
The equation of a straight line is [tex]y = mx+c[/tex]
where [tex]m[/tex] is the gradient and [tex]c[/tex] is the intercept on the y axis.
The gradient is computed by [tex]m=\frac{y_2-y_1}{x_2-x_1}=\frac{8-2}{-5-(-3)} =\frac{6}{-2}=-3[/tex]
The next step is to find the value of [tex]c[/tex] , by picking the point [tex](-3,2)[/tex] and substituting it into the equation above together with the gradient.
[tex]2=(-3)\times(-3)+c\\=>c =-7.[/tex]
The equation of the line is
[tex]y = -3x-7[/tex].