Let x be Ray's distance from home. His distance is one leg of a right triangle; 5, Rosa's distance from home, is the other. The hypotenuse, the distance between them, is 1 more than Ray's distance from home, or x+1. Using the Pythagorean theorem,
5²+x²=(x+1)² 25+x²=(x+1)(x+1)
Multiplying the binomials, we have 25+x²=x*x+1*x+1*x+1*1 25+x²=x²+1x+1x+1 25+x²=x²+2x+1