One number is 12 more than another. The sum of the smaller number and twice the
larger number is 39. Find the larger number.\r\n" );
document.write( "\r\n" );
document.write( "Let us assign x to the smaller number and y to the larger number.\r\n" );
document.write( "\r\n" );
document.write( "From the first sentence we derive the following equation:\r\n" );
document.write( "X=Y+12\r\n" );
document.write( "From the second, we derive the following:\r\n" );
document.write( "Y+2X=39\r\n" );
document.write( "\r\n" );
document.write( "We know X is equal to Y+12, so we'll replace the X in the second equation with (Y+12).\r\n" );
document.write( "The second equation now yields:\r\n" );
document.write( "Y+2(Y+12)=39. Let us simplify by distribution:\r\n" );
document.write( "Y+2Y+24=39 Simplify and minus 24 on both sides:\r\n" );
document.write( "3Y=15 Divide both sides by 5:\r\n" );
document.write( "Y=5 We found Y!\r\n" );
document.write( "\r\n" );
document.write( "Since we know Y is equal to 5, we can replace it into the equation X=Y+12.
This yields:\r\n" );
document.write( "X=5+12, or 17.\r\n" );
document.write( "\r\n" );
document.write( "X=17\r\n" );
document.write( "Y=5
\n" );
document.write( "