The given foci mean the major axis is horizontal, and the center of the ellipse is at the origin, (0,0). For an ellipse with those features, the equation is
a is the semi-major axis; b is the semi-minor axis.
c is the distance from the center to each focus
a, b, and c are related by the equation
The given information tells you a=4 and c=2; from that you can determine b and thus write the equation.