First, you have to determine the slope of the given line and apply the fact that the product of the slopes of two lines that are perpendicular is negative one.
So let us find the slope of the line connecting (-2,1) and
(3,8)
Recall the formula for finding the slope is
[tex] \frac{y_2 -y_1 }{x_2 - x_1} [/tex]
Now, let the slope this line be m, then
[tex]m=\frac{8 - 1 }{3 - - 2}[/tex]
[tex]\Righarrow m=\frac{8 - 1 }{3 + 2}[/tex]
[tex]\Righarrow m=\frac{7}{5}[/tex]
We now let the slope of the line perpendicular to it be n, then
[tex]m\times n = -1[/tex]
[tex]\Righarrow \frac{7}{5} \times n = -1[/tex]
[tex]n = -1 \times \frac{5}{7} [/tex]
Hence the slope of the line perpendicular to it, is
[tex]-\frac{5}{7} [/tex]