An ellipse is the geometric place of the points in the plane which sum of distances to two fixed points, called foci, is constant.
We will suppose that in this case the foci $$F$$ and $$F'$$ are on the axis $$OX$$, so that they are defined by $$F'=(-c,0)$$ and $$F=(c,0)$$ and therefore the ellipse is centred on the origin.
This way, for the ellipse definition we will write that for any point $$P$$ of the ellipse, the following is satisfied: $$$\displaystyle \overline{PF}+\overline{PF'}=2a$$$ where $$a$$ corresponds to a constant that we can determine as $$a^2=b^2+c^2$$.
Let's see it in the following drawing:
Let's develop it: $$$\displaystyle \overline{PF}+\overline{PF'}=2a$$$ which is equivalent to the expression: $$$\displaystyle \sqrt{(x-c)^2+y^2}+\sqrt{(x+c)^2+y^2}=2a$$$ So, first, we move the second root to the other side of the equality: $$$\displaystyle \sqrt{(x-c)^2+y^2}=2a-\sqrt{(x+c)^2+y^2}$$$
We raise both sides to the square: $$$ \Big( \sqrt{(x-c)^2+y^2} \Big)^2=\Big( 2a-\sqrt{(x+c)^2+y^2} \Big)^2$$$ $$$ (x-c)^2+y^2=4a^2-2 \cdot 2a \cdot \sqrt{(x+c)^2+y^2}+(x+c)^2+y^2$$$ $$$x^2-2\cdot x \cdot c+c^2+y^2=4a^2-2 \cdot 2a\cdot \sqrt{(x+c)^2+y^2}+x^2+2xc+c^2+y^2$$$
Now we isolate the root that we have left on one side of the equation, giving: $$$4a\sqrt{(x+c)^2+y^2}=4a^2 +4xc$$$ $$$\displaystyle a\sqrt{(x+c)^2+y^2}=\frac{4a^2+4xc}{4}=a^2+cx$$$
We square both sides of the equality: $$$\Big(a\sqrt{(x+c)^2+y^2}\Big)^2=(a^2+cx)^2 $$$ $$$ a^2((x+c)^2+y^2)= a^4+2a^2cx+c^2x^2$$$ $$$a^2(x^2+2cx+c^2+y^2)=a^4+2a^2cx+c^2x^2 $$$ $$$ a^2x^2+2a^2cx+a^2c^2+a^2y^2=a^4+2a^2cx+c^2x^2$$$
Remembering that the relation exists $$a^2=b^2+c^2$$, we have: $$$(a^2-c^2)x^2+a^2c^2+a^2y^2=a^4$$$ $$$b^2x^2+a^2y^2=a^4-a^2c^2=a^2(a^2-c^2)=a^2b^2 $$$
Now we divide both sides of the expression by the factor $$a^2b^2$$ and it gives: $$$\displaystyle \frac{b^2x^2+a^2y^2}{a^2b^2}=\frac{a^2b^2}{a^2b^2} $$$ $$$\displaystyle \frac{x^2}{a^2}+\frac{y^2}{b^2}=1 $$$ The latter expression is the equation of the ellipse that we wanted to find.
If they give us the expression $$$\displaystyle \frac{x^2}{25}+\frac{y^2}{4}=1$$$ then this corresponds to an ellipse centred on the origin for which we calculate the semiaxes in the following way: $$$a^2=25 \Rightarrow a=\sqrt{25}=5$$$ $$$b^2=4 \Rightarrow b=\sqrt{4}=2$$$
What is the value of the semiaxes of the ellipse $$\displaystyle \frac{x^2}{3}+\frac{y^2}{8}=1$$?
Equaling the denominators to the squares of the above mentioned lengths we obtain: $$$a=\sqrt{3} \\ b=\sqrt{8}=2\sqrt{2}$$$
Now we are going to work a little with this equation.
We are going to find the typical elements and the limited equation of the ellipse of foci: $$F' (-3,0)$$ and $$F (3, 0)$$, such that its biggest axis measures $$10$$.
Since the biggest axis measures $$10$$ we know that the biggest semiaxis will be half.
This way, we obtain: $$2a=10 \Rightarrow a=5$$.
Since we know that the foci are the points $$F' (-3,0)$$ and $$F (3, 0)$$, the distance between them is $$6$$.
Therefore: $$2c=6 \Rightarrow c=3$$.
Since we know the relation $$a^2=b^2+c^2$$, by isolating $$b$$ of the above mentioned equation we obtain: $$$b^2=5^2-3^2=25-9=16 \Rightarrow b=4$$$
Now , since we already know the major and minor semiaxes, we take the equation of the ellipse and replace the values in it, obtaining in this way the equation of this ellipse.$$$\displaystyle \frac{x^2}{5^2}+\frac{y^2}{4^2}=1$$$ Finally, we can calculate the eccentricity, which is $$$\displaystyle e=\frac{c}{a}=\frac{3}{5}$$$