Solve[{b*h = 40 , b^2 + h^2 = 100}, {b, h}]