Given the coordinate of the focus of an ellipse is (-2, 0) and (2, 0). The point P with the coordinate (3, -square root of 2) lies on the ellipse. Find the equation of the ellipse.