Let triangle $\triangle ABC$ have side lengths $AB = 7$, $BC = 8$, and $CA = 9$, and let M and D be midpoint of BC and the foot of the altitude from A to BC , respectively. Let E and F lie on AB and AC, respectively, such that $m\angle{AEM} = m\angle{AFM} = 90$ . Let P be the intersection of the angle bisectors of $\angle{AED}$ and $\angle{AFD}$ . Find MP.
We can easily calculate $BD=2$, $AD=3\sqrt5$, $MF=4/3 \sqrt 5$, $EM=12/7 \sqrt 5$.
Theoretically, massive coordinates calculation may work things out.