It is given that, vertices (0,±3), foci (0,±5)
Here the vertices are on the y-axis
Therefore, the equation of the hyperbola is of the form y2a2−x2b2=1
Since the vertices are (0,±3)⇒a=3
Since the foci are (0,±5)⇒ae=c=5
We know that a2+b2=c2
∴32+b2=52
⇒b2=25−9=16
Thus the equation of the hyperbola is y29−x216=1