\r\n" );
document.write( "Looks like AI got this one correct. AI will get better and better, but you\r\n" );
document.write( "can't trust it with everything yet. There is still some use for us humans.\r\n" );
document.write( "So I'll do it the human way.\r\n" );
document.write( "------------\r\n" );
document.write( "Rama was getting some items for the new school year.\r\n" );
document.write( "\r\n" );
document.write( "Let x = the amount at first.\r\n" );
document.write( "\r\n" );
document.write( "First, he bought some textbooks with $8 more than 1/3 of his money. \r\n" );
document.write( "\r\n" );
document.write( "Let y = how much he had left after buying textbooks.\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Next, he bought his stationery with $12.20 less than 1/2 of his remaining money.\r\n" );
document.write( "\r\n" );
document.write( "Let z = how much he had left after buying stationery.\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Lastly, he bought some school socks with $2.80 more than 1/2 of the money left.\r\n" );
document.write( "\r\n" );
document.write( "Let w = how much he had left after buying socks.\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Then, he had $15.40 with him. \r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "How much money did he have at first?\r\n" );
document.write( "\r\n" );
document.write( "Substitute the 4th equation in the 3rd equation\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Substitute that in the 2nd equation\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Substitute that in the 1st equation\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Answer: $84.60 <--SOLUTION!\r\n" );
document.write( "\r\n" );
document.write( "Checking:\r\n" );
document.write( "\r\n" );
document.write( "He had $84.60 \r\n" );
document.write( "First, he bought some textbooks with $8 more than 1/3 of his money. \r\n" );
document.write( "\r\n" );
document.write( "1/3 of his 84.60 or 28.20, plus 8 is 36.20, which was what he spent,\r\n" );
document.write( "so he had 84.60-36.20 or 48.40 left.\r\n" );
document.write( "\r\n" );
document.write( "Next, he bought his stationery with $12.20 less than 1/2 of his remaining money. \r\n" );
document.write( "\r\n" );
document.write( "1/2 of his remaining money was 1/2 of 48.40, or 24.20, minus 12.20, or 12, \r\n" );
document.write( "which was what he spent, so he had 48.40-12 or 36.40 left.\r\n" );
document.write( "\r\n" );
document.write( "Lastly, he bought some school socks with $2.80 more than 1/2 of the money left.\r\n" );
document.write( "\r\n" );
document.write( "1/2 of his remaining money was 1/2 of 36.40, or 18.20, plus 2.80, or 21, \r\n" );
document.write( "which was what he spent, so he had 36.40-21 or 15.40 left.\r\n" );
document.write( "\r\n" );
document.write( "Then, he had $15.40 with him.\r\n" );
document.write( "\r\n" );
document.write( "So now we know we have the right answer, $84.60.\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" );
document.write( "