The general equation of an ellipse is
Where (h, k) are the coordinates of the center.
For our ellipse, we already have the center (2, 1), then, our equation will be
Using the points that belong to this ellipse, we can substitute them on this equation to find the coefficients a and b.
First, let's use the point (4, 1). Doing the substitution, we have
Using the other point, we can calculate the other coefficient.
And then, we have our ellipse equation.