We have a right triangle and we have to find the length of the legs.
We first analyse the hypotenuse.
It is a line that is defined by two points: (4,4) and (-2,-2).
The line passes through the center of coordinates, but we will check it:
The slope can be calculated as:
We can now write the slope-point equation as:
Then, we know that the equation of the line that defines the hypotenuse is y=x.
If the legs are parallel to the axis, we can find the angle that is defined by the hypotenuse and the horizontal leg as:
As we have an angle of 45 degree for one leg, the other has to have an equal angle, as 180-90-45=45 (Note: we are substracting from the sum of the 3 angles, 180 degrees, the already known angles, 90 and 45 degrees, so we are left with 45 degrees that correspond to the third angle).
If the two angles for the legs are equal, their lengths are equal too.
So we can start by calculating the length of the hypotenuse: it is the distance between (4,4) and (-2,-2).
Then, we can write the Pythagorean theorem as (a and b are the legs, and c is the hypotenuse):
Answer: the length of the legs is 6 units.