The foci are
and
.
Let
and
.
Since the
- coordinates of the foci is same, the ellipse is a verical ellipse.
The standard form of the equation of ellipse with the major axis is
\vertical is
.
Where
is the length of the semi major axis and
is the length of the semi
minor axis.
\The length of the major axis is
.

The center of the ellipse is the mid point of foci.
\
The center of the ellipse is
.
The distance from center to one of the foci is
.
The foci is lie on the major axis,
units from the center is,

Substitute
,
and
in
.

The equation of the ellipse is 
The equation of the ellipse is 