Find the equation of the ellipse having its center at the origin, its major axis is parallel to the x-axis, its minor axis is parallel to the y-axis, and this ellipse passes through (3,1) and (-2,2).