The hyperbola is a vertical hyperbola which means the equation is (y^2/a^2)-(x^2/b^2)
The vertices is at (0+/-2) meaning a=2
so we have (y^2/2^2)-(x^2/b^2)=1
The foci is at (0+/-7) meaning b=7
so now we have (y^2/2^2)-(x^2/7^2)=1
Then we simplify and the equation is (y^2/4)-(x^2/49)=1