The foci always lie on the major axis. The major axis can be determined by finding the intercepts on the axes of symmetry. That is, major axis is along the X-axis, if the coefficient of x2 has the larger denominator and it is along the Y-axis, if the coefficient of y2 has the larger denominator.