If you have two lines, for example:
[tex]y=mx+b[/tex]with slope "m"
and
[tex]y=nx+c[/tex]with slope "n"
That are perpendicular, the relationship between the slopes is that one is the inverse negative of the others, symbolically:
[tex]n=-\frac{1}{m}[/tex]So the first step is to use the known points of one of the lines to calculate the slope using the formula:
[tex]m=\frac{y_1-y_2}{x_1-x_2}[/tex]For (5,7) and (10,3)
[tex]\begin{gathered} m=\frac{3-7}{10-5}=\frac{-4}{5} \\ m=-\frac{4}{5} \end{gathered}[/tex]Now that you have determined the value of the slope, you can determine the slope of a line perpendicular to it as:
[tex]\begin{gathered} n=-\frac{1}{m} \\ n=-(-\frac{5}{4}) \\ n=\frac{5}{4} \end{gathered}[/tex]The slope of the perpendicular line to one that passes through points (5,7) and (10,3) is 5/4