This problem is taken from the Chinese WMTC 2019 Junior Division.
If ABCD is a square of area 40, and $BE=\frac{1}{3}AB, BF=\frac{2}{5}BC$, find the area of BGHF.
I tried using the idea of area ratios (same-base, same-height), but was stuck.
Using Geogebra, I found that EG = GH and EH = HC. Furthermore, area is 3.
What idea or concept am I missing to get to the fact the EG = GH?



The following is your diagram with the horizontal line $JK$ through $G$, plus the vertical lines $GL$ and $HM$, added to it:
Define $s = \sqrt{40}$ to be the square's side lengths. Next, since $\measuredangle GEB = \measuredangle GCD$, $\measuredangle GBE = \measuredangle GDC$ and $\measuredangle EGB = \measuredangle CGD$, then $\triangle EGB \sim \triangle CGD$, with a similarity ratio of $\lvert EB\rvert$ to $\lvert DC\rvert$, i.e., $1$ to $3$. Thus, their altitudes, as well as $\lvert EG\rvert$ compared to $\lvert GC\rvert$, have the same similarity ratio, so
$$\lvert GJ\rvert = \frac{s}{4}, \;\; \lvert GK\rvert = \lvert LC\rvert = \frac{3s}{4}, \;\; \lvert GC\rvert = 3\lvert EG\rvert \tag{1}\label{eq1A}$$
From $\triangle EBC \sim \triangle GLC$, we get
$$\frac{\lvert EB\rvert}{\lvert BC\rvert} = \frac{\lvert GL\rvert}{\lvert LC\rvert} \;\;\to\;\; \frac{1}{3} = \frac{\lvert GL\rvert}{\frac{3s}{4}} \;\;\to\;\; \lvert GL\rvert = \frac{s}{4} \tag{2}\label{eq2A}$$
Letting $x = \lvert HM\rvert$ then, since $\triangle HMC \sim \triangle EBC$, we have $\lvert MC\rvert = 3x$. Also, $\lvert FM\rvert = \lvert FC \rvert - \lvert MC\rvert = \frac{3s}{5} - 3x$. Since $\triangle HMF \sim \triangle DCF$, then
$$\frac{\lvert FM\rvert}{\lvert HM\rvert} = \frac{\lvert FC\rvert}{\lvert DC\rvert} \;\;\to\;\; \frac{\frac{3s}{5} - 3x}{x} = \frac{3}{5} \;\;\to\;\; \frac{s}{5} - x = \frac{x}{5} \;\;\to\;\; x = \lvert HM\rvert = \frac{s}{6} \tag{3}\label{eq3A}$$
This shows $\lvert EB\rvert = 2\lvert HM\rvert$. Since $\triangle EBC \sim \triangle HMC$, then $\lvert EC\rvert = 2\lvert HC\rvert \;\to\; \lvert EH\rvert = \lvert HC\rvert$. This, along with the last part of \eqref{eq1A}, gives that $\lvert EG\rvert = \lvert GH\rvert$, confirming your Geogebra results.
Finally, using $A$ to be the area function, then since $A(BGHF) = A(BGC) - A(FHC)$, we get using the triangle altitudes in \eqref{eq2A} and \eqref{eq3A} that
$$A(BGHF) = \frac{1}{2}(s)\left(\frac{s}{4}\right) - \frac{1}{2}\left(\frac{3s}{5}\right)\left(\frac{s}{6}\right) = s^2\left(\frac{1}{8} - \frac{1}{20}\right) = 40\left(\frac{5 - 2}{40}\right) = 3 \tag{4}\label{eq4A}$$