Because you are given that one angle measures 90 degrees, this is an isosceles right triangle. Therefore, the other two angles must be equal, and add up to 90 degrees because an isosceles right triangle is exactly half of a square. Also, all angles in a triangle must add up to 180 degrees. Because of these rules, we can completely ignore the expression for angle G and sufficiently say it is 45 degrees.