The congruent complement theorem states that angles AGI and BGH are congruent. This is because there is a pair of vertical angles next to angles AGI and BGH, and we also know that AGI and its adjacent angle add up to 90, and the same goes for BGH and its adjacent angle.
Hope this helps! :)