Note that triangles DXE and EYF have the same height as triangle DEF and their combined bases = DF
So.....their total areas must be the same as the area of triangle DEF
Since rectangle DXYF = 40......then it is composed of two equal areas .....
So.......[ DEF ] = 40 / 2 = 20
