\r \n" );
document.write( "\n" );
document.write( "Although the solution can be discovered by 5-10 seconds of observation, here are the steps needed to solve it procedurally (so you'll know how to solve problems when the solution is not so obvious):\r \n" );
document.write( "\n" );
document.write( "x + y = -5 (1) —> y = -5 - x \n" );
document.write( "xy = 6 (2)\r \n" );
document.write( "\n" );
document.write( "Substitute for y from (1) in (2): \n" );
document.write( "x(-5-x) = 6 \n" );
document.write( " \n" );
document.write( " \n" );
document.write( " \n" );
document.write( " and \r \n" );
document.write( "\n" );
document.write( "x=-3 ==> y = -5 - (-3) = -2 \n" );
document.write( "x=-2 ==> y = -5 - (-2) = -3 (so this case is just the x & y values swapped, we can accept either one since x and y have no special meaning here)\r \n" );
document.write( "\n" );
document.write( "— \n" );
document.write( "Ans: The numbers satisfying the given criteria are and \n" );
document.write( "— \n" );
document.write( "Check: -2 - 3 = -5 (ok) \n" );
document.write( " and (-2)*(-3) = 6 (ok) \n" );
document.write( "