124. Two ascetics live at the top of a sheer cliff of height $h$, at a distance from the neighboring village that is $m$ times greater. One ascetic, to reach the village, descends the cliff and then walks a straight path. The other, meanwhile, rises into the air to some height $x$ and from there heads straight for the village. If both of them thus travel the same distance, the question is: to what height did the second ascetic rise?
124. If the desired height is $x$, then

$$
x+\sqrt{(x+h)^{2}+m^{2} n^{2}}=h+m h
$$

By moving $x$ to the right side and squaring, after simplification we will have:

$$
x(m+2)=h m
$$

from which

$$
x=\frac{h m}{m+2}
$$