well, first you need to know what you are working with if its a hyperbola you're going be using certain equation and its the same for ellipse or parabola. and you need to understand that foci are always located inside the Vertecies. so first step get the right equation and proceed from there.