The source labels the square height as 5 units and EF as 2 units.
Area of AGH = 1/2 × GH × 5 units = 2.5 units × GH. Area of EGH = 1/2 × GH × 2 units = 1 unit × GH.
Half the shaded area is 36 ÷ 2 = 18 cm². Thus 1.5 units × GH = 18, giving 1 unit × GH = 12.
Area of AGH = 2.5 × 12 = 30 cm².