let the two shorter sides be represented by vectors

and

. we know that these are perpendicular, so

. the hypotenuse is the vector joining the tail of a with the head of b. hence,

. the midpoint of the hypotenuse is
)
. now, with all this information we can do the question
the distance from the first vertex to the midpoint is

(I used the origin as the first vertex). now, the length of the hypotenuse is

which is also the length from the origin to the second vertex. subtracting this from the distance from the midpoint to the first vertex gives you

. the final vertex is at (a,0). the vector joining this vertex to the midpoint is
)
how do we find the length of this? write it as a dot product. hence, the length of this vector is
.(\mathbf{b-a})} = \frac{1}{2}\sqrt{\mathbf{b.b + a.a}})
(since

)

as well. hence, all vertices are the same distance from the midpoint of the hypotenuse