Right triangle with median as a geometric mean

Construct a right triangle with given hypotenuse c such that the median drawn to the hypotenuse is the geometric mean of the two legs of the triangle. [First International Olympiad, 1959][br](Hint: observe the relationship between c and the median)

Information: Right triangle with median as a geometric mean