Draw a triangle where the line connecting the two points is the hypotenuse. The difference in the X values between G and S is 5. The difference in the Y values is 4. Therefore One side of the triangle is five units long and one side is four units long. Using the Pythagorean theorem of A^2 + B^2 = C^2 we can plug-in 5 for A and 4 for B. Thus 25+16=C^2