Consider the standard equation of the ellipse. Use the two points given in the question to find the value of ‘a’ and ‘b’.
Let the equation of the required ellipse be
Given that it passes through (4, 0)
It also passes through (2, 1), one of the vertex of rectangle.