slope of a line that passes through [tex](x_1,y_1)[/tex] and [tex](x_2,y_2)[/tex] is
[tex]\frac{y_1-y_2}{x_1-x_2}[/tex]
given the points (-2,8) and (5,2)
the slope between them is [tex]\frac{8-3}{-2-5}=\frac{5}{-7}=\frac{-5}{7}[/tex]
the slope is [tex]\frac{-5}{7}[/tex]