document.write( "Question 564841: The difference of two positive numbers is 4 and the sum of their squares is 40. Find the numbers \n" ); document.write( "
Algebra.Com's Answer #365505 by htmentor(1343)\"\" \"About 
You can put this solution on YOUR website!
Let the two numbers = a and b
\n" ); document.write( "Given:
\n" ); document.write( "a - b = 4 -> a = b + 4
\n" ); document.write( "a^2 + b^2 = 40
\n" ); document.write( "(b+4)^2 + b^2 = 40
\n" ); document.write( "Solve for b:
\n" ); document.write( "b^2 + 8b + 16 + b^2 - 40 = 0
\n" ); document.write( "2(b^2 + 4b - 12) = 0
\n" ); document.write( "Factoring gives
\n" ); document.write( "(b-2)(b+6) = 0
\n" ); document.write( "Since the numbers are positive, we have b=2
\n" ); document.write( "Therefore the two numbers are 2 and 6
\n" ); document.write( "
\n" );