In triangle $STU$, let $M$ be the midpoint of $\overline{ST},$ and let $N$ be on $\overline{TU}$ such that $\overline{SN}$ is an altitude of triangle $STU$. If $ST = 13$, $SU = 14$, $TU = 4$, and $\overline{SN}$ and $\overline{UM}$ intersect at $X$, then what is $UX$?