The formula a^2 + b^2 = c^2 can be used to find any of the legs of the triangle. a and b are legs of the triangle and c is the hypotenuse. We can substitute known values into the equation:
a^2 + b^2 = c^2
One leg is 5 so we can put that in as a. And c, the hypotenuse, is 8.
The formulas for 180 clockwise and counterclockwise wise is -x,-y since both of them are negative they would become positive because -x * -x = + same with y.