I also prefer Davin's method. Your school might let 'a' and 'b' be something else
When it comes to ellipses, your 'a' is always the bigger number
When it comes to hyperbolas, your 'a' is always the first number
This ensures the formula you use will always stay the same
b^2=a^2(e^2-1)...