The vertices of the hyperbola is
and
.
Since
- coordinates of the foci are same the transverse axis of the hyperbola is vertical.
Standard form of vertical hyperbola is
.
The center of the hyperbola is mid point of vertices
and
.
Center of the hyperbola is
.
The value of
is the distance from each vertex to centre.
Distance between one of the vertices
to the center
is
.

.
Asymptotes of the hyperbola is
.
Slope of the asymptote is
.
Positive slope of the asymptote is
.

.
Substitute
,
and
in
.

Thus, equation of hyperbola is
.
Equation of hyperbola is
.