in the given triangle DEF, angle D is 90° and segment DG is perpendicular to segment EF. if EG = 2 and EF = 8, find the length of segment ED