we know that
if two lines are perpendicular, then the product of their slopes is equal to minus one
so

The formula to calculate the slope between two points is equal to

we have

Step 1
Find the slope xz

Substitute in the slope's formula



Step 2
Find the slope yz

Substitute in the slope's formula



Step 3
Find the slope xy

Substitute in the slope's formula



Step 4
Verify if two of the slopes are perpendicular



Multiply myz and mxy
-------> the lines segment yz and xy are perpendicular
therefore
the triangle XYZ is a right triangle
the answer in the attached figure