If you sketch the diagram, it's quite simple . . .
Let = distance from toLet be a triangle with a right angle at
The midpoint of hypotenuse is twice as far from side as it is from side
Find the length of side , if mmThe diagram is filled with congruent right triangles!Code:X * |\ | \ 2d | \ 5 | \ | d \ M * - - * |\ :\ | \ : \ 2d | \ : \ 5 | \ :2d \ | \: \ Z *-----*-----* Y d d
Using Pythagorus on