Points $E$ and $F$ lie on diagonal $\overline{AC}$ of square $ABCD$ with side length $24$, such that $AE = CF = 3\sqrt2$. An ellipse with foci at $E$ and $F$ is tangent to the sides of the square. Find the sum of the distances from any point on the ellipse to the two foci.

Let's think step by step and output the final answer within \boxed{}.
user