we know that
if two lines are perpendicular, then the product of their slopes is equal to minus one
so
[tex]m1*m2=-1[/tex]
The formula to calculate the slope between two points is equal to
[tex]m=\frac{(y2-y1)}{(x2-x1)}[/tex]
we have
[tex]x(-5,5)\\y(-3,-2)\\z(4,0)[/tex]
Step 1
Find the slope xz
[tex]x(-5,5)\\z(4,0)[/tex]
Substitute in the slope's formula
[tex]m=\frac{(0-5)}{(4+5)}[/tex]
[tex]m=\frac{(-5)}{(9)}[/tex]
[tex]mxz=-\frac{5}{9}[/tex]
Step 2
Find the slope yz
[tex]y(-3,-2)\\z(4,0)[/tex]
Substitute in the slope's formula
[tex]m=\frac{(0+2)}{(4+3)}[/tex]
[tex]m=\frac{(2)}{(7)}[/tex]
[tex]myz=\frac{2}{7}[/tex]
Step 3
Find the slope xy
[tex]x(-5,5)\\y(-3,-2)[/tex]
Substitute in the slope's formula
[tex]m=\frac{(-2-5)}{(-3+5)}[/tex]
[tex]m=\frac{(-7)}{(2)}[/tex]
[tex]mxy=-\frac{7}{2}[/tex]
Step 4
Verify if two of the slopes are perpendicular
[tex]mxz=-\frac{5}{9}[/tex]
[tex]myz=\frac{2}{7}[/tex]
[tex]mxy=-\frac{7}{2}[/tex]
Multiply myz and mxy
[tex]\frac{2}{7}*-\frac{7}{2}=-1[/tex] -------> the lines segment yz and xy are perpendicular
therefore
the triangle XYZ is a right triangle
the answer in the attached figure