GEOMETRIA - UNICAMP 2025

The figure below shows a triangle ABC that contains two squares inside it. Segment GH is a side of one of the squares and is contained in segment AB. Segment EF, contained in segment AC, is a side of the other square. Knowing that AG measures 4 cm and that the side GH of the smaller square measures 3 cm, the length of segment EF is: