Equation of ratios:
r h
---- = -----
h s
Note: r/s is the ratio of "shorter leg to longer leg," and the same is true for h/s.