The hypotenuse of a right triangle is 37 units long. Find the other two sides if the perimeter of the triangle is 84 units.
Please don't just provide an answer without showing your work. I recommend not using brute force as a method too.
Leg a = a
Leg b = b
By perimeter:
a+b+37=84
a+b=47
By Pythagorean Theorem:
a2+b2=372
Substitution:
a2+(47−a)2=372
Solving:
a^2+(47-a)^2=37^2 = {a=12, a=35}
a = 12
b = 35
or
a = 35
b = 12