We have vertices (0,±5) foci (0,±8)
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,±5)⇒a=5
And the foci are (0,±8)⇒ae=8
We know that b2=a2(e2−1)=a2e2−a2=64−25=39
Thus the equation of the hyperbola is y225−x239=1