What is the length of the line segment ED in the given figure, if the area of the rectangle AYXD is equal to that of the rectangle ABFE?