Question 1176733
Formula for slope ,  assuming your points are for a line,

{{{(-2-(-42))/(-4-6)=(y-(-2))/(x-(-4))}}}
Simplify this and solve for y in terms of x.  Finish in form y=mx+b.