document.write( "Question 1159398: Hi\r
\n" ); document.write( "\n" ); document.write( "John had 100 dollars to spend on cakes. The shop had an ad with the following prices.\r
\n" ); document.write( "\n" ); document.write( "3 dollars a cake\r
\n" ); document.write( "\n" ); document.write( "Buy 5 cakes get 2 for free.\r
\n" ); document.write( "\n" ); document.write( "What is most number of cakes that he can buy with all his money.\r
\n" ); document.write( "\n" ); document.write( "Thanks \r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #782413 by Edwin McCravy(20060)\"\" \"About 
You can put this solution on YOUR website!
\r\n" );
document.write( "John had 100 dollars to spend on cakes. The shop had an ad with the following\r\n" );
document.write( "prices.\r\n" );
document.write( "\r\n" );
document.write( "3 dollars a cake\r\n" );
document.write( "\r\n" );
document.write( "Buy 5 cakes get 2 for free.\r\n" );
document.write( "\r\n" );
document.write( "What is most number of  cakes that he can buy with all his money.\r\n" );
document.write( "
\r\n" );
document.write( "First of all, this is the old \"buy some and get some free\" trick which has been\r\n" );
document.write( "played on customers for many years.  [The one I see most often is \"Buy 3 tires\r\n" );
document.write( "at the regular price and get the 4th tire free\".  \r\n" );
document.write( "\r\n" );
document.write( "So let's eliminate the trick played.  If he buys 5 cakes for $15 and get 2 free,\r\n" );
document.write( "the bottom line is that he's paid $15 and gotten 7 cakes.  So the merchant\r\n" );
document.write( "might as well have said \"$3 a cake, or 7 cakes for $15\".\r\n" );
document.write( "\r\n" );
document.write( "So we divide $15 into $100 to see how many groups of 7 cakes he could get:\r\n" );
document.write( "                                     \r\n" );
document.write( "                          6 \r\n" );
document.write( "                     15)100\r\n" );
document.write( "                         90\r\n" );
document.write( "                         10\r\n" );
document.write( "\r\n" );
document.write( "That would give him 6∙7 = 42 cakes.  That remainder of 10 tells us that he would\r\n" );
document.write( "have $10 remaining.  That's not enough money remaining to buy 5 more cakes at $3\r\n" );
document.write( "a cake, so he could not get any free cakes.  But he could still use it to get a\r\n" );
document.write( "few more cakes even if he couldn't get any free ones.\r\n" );
document.write( "\r\n" );
document.write( "                        3\r\n" );
document.write( "                     3)10\r\n" );
document.write( "                        9\r\n" );
document.write( "                        1\r\n" );
document.write( "\r\n" );
document.write( "So he could get 3 more cakes, or 42+3=45 cakes and have 1 dollar remaining. \r\n" );
document.write( "\r\n" );
document.write( "Edwin

\n" ); document.write( " \n" ); document.write( "
\n" );