Find the equation of the hyperbola having its foci at and passing through the point P(3, 4).