Let the ellipse be $\frac{x^{2}}{a^{2}}+\frac{y^{2}}{b^{2}} = 1$
Distance between foci $= 2ae = 8$
$ \Rightarrow ae = 4 $
Distance between directrices $= \frac{2a}{e} = 25$
$ \therefore \left(ar\right)\left(\frac{2a}{e}\right) = 4\times25 $
$\Rightarrow 2a^{2} = 100 $
$ \Rightarrow a^{2} = 50 $
$ \Rightarrow a= 5\sqrt{2} $
$ \Rightarrow 2a= 15\sqrt{2}$
$ \therefore$ length of major axis $= 10\sqrt{2}$