document.write( "Question 1143268: The sum of two whole number is 45. Their difference is less than 10.the number of all possible pair is \n" ); document.write( "
Algebra.Com's Answer #764208 by ikleyn(52781)\"\" \"About 
You can put this solution on YOUR website!
.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "            The analysis and the answer by Edwin are incorect: he gives many \"solutions\", that are not the solutions at all.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "            I came to fix it.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "Let x is the greatest of the two numbers x and y satisfying the condition.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Then\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    x  + y = 45,     (1)\r\n" );
document.write( "\r\n" );
document.write( "    x - y  < 10.     (2)\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Express y = 45 - x from (1) and substitute it into (2). You will get\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    x - (45-x) < 10.\r\n" );
document.write( "\r\n" );
document.write( "    2x - 45 < 10\r\n" );
document.write( "\r\n" );
document.write( "    2x      < 10 + 45 = 55\r\n" );
document.write( "\r\n" );
document.write( "     x      < 55/2 = 27.5.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "So, the solutions are these 5 pairs (x,y),  where y = 45-x,  x is the largest of the two numbers  and  x-y < 10 :\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    (27,18), (26, 19), (25,20), (24,21), (23,22).   (*)\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Five reversed pairs\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    (18,27), (19,26), (20,25), (24,21), (22,23)      (**)\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "are the solutions to the original problem, too.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "So,  10 pairs  (*)  and  (**), and only they, are the solutions to the problem. \r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "ANSWER.  The number of all possible pairs is 10.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );