In the diagram, right-angled triangles $AED$ and $BFC$ are constructed inside rectangle $ABCD$ so that $F$ lies on $DE$. If $AE = 7$, $ED = 24$, and $BF = 15$, what is the length of $AB$?