Answer :
Short leg = 18 Long leg= 24 Hypotenuse= 30
My calculations were simple trial and error. I started with a trial of 10 for the short leg to begin with, averaging and estimating the appropriate proportions based off 6 additional increments. Sorry I don't have an algebraic method for you. Hope this has helped somewhat :)