Where BEH is a triangle with BE as the base and DC as the height, which can be obtained;
BFH is a triangle with BF as the base, AD-X as the height, HDG is a triangle with DG as the base and X as the height, DG=BF, so add them together and eliminate X, and the result will come out.