Given:
EJ = 5
JH = 20
FG = 8.
If a line parallel to one side of a triangle intersects the other two sides of the triangle, then the line divides these two sides proportionally.
Therefore, we have,
Substituitng the values, EF can be calculated as,
Therefore, EG can be calculated as,