math
posted by vincent .
The longer leg of a right triangle is 3 more than the shorter leg. The Hypotenuse is 6 more than the shorter leg. If the perimeter of the triangle is 36, find the length of each side of the right triangle. [ Only an algebraic solution will be accepted ]
not just the answer , please

shorter leg  x
longer leg  x+3
hypotenus  x+6
x+x+3+x+6 = 36
3x = 27
x = 9
short leg = 9
longer leg = 12
hypotenuse = 15
check to make sure it is rightangled:
9^2 + 12^2 = 225
15^2 = 225
all is good.