document.write( "Question 1210396: Hakim spent 3/8 of his money on 3 cupcakes and 8 muffins. Then he spent 4/5 of the remaining money on 15 pieces of waffle. Each cupcake cost 2/3 as much as a muffin. Each piece of waffle cost $0.20 more than a cupcake. What was the cost of a muffin? \n" ); document.write( "
Algebra.Com's Answer #852217 by MathTherapy(10552)\"\" \"About 
You can put this solution on YOUR website!
\r\n" );
document.write( "Hakim spent 3/8 of his money on 3 cupcakes and 8 muffins. Then he spent 4/5 of the remaining money on 15 pieces of waffle. Each cupcake cost 2/3 as much as a muffin. Each piece of waffle cost $0.20 more than a cupcake. What was the cost of a muffin?\r\n" );
document.write( "\r\n" );
document.write( "Let amount spent, be D, cost of a muffin, M, and cost of a cupcake. C\r\n" );
document.write( "\r\n" );
document.write( "For the first purchase, we get: \"%283%2F8%29D+=+3C+%2B+8M\"\r\n" );
document.write( "                                   3D = 24C + 64M ---- Multiplying by LCD, 8 ---- eq (i)\r\n" );
document.write( "\r\n" );
document.write( "For the second purchase, we get:\"%284%2F5%29%281++-++3%2F8%29+%2A+D+=+15W\"\r\n" );
document.write( "                                \"%284%2F5%29%285%2F8%29D+=+15W\"\r\n" );
document.write( "                                \"%28cross%284%29%2Fcross%285%29%29%28cross%285%29%2F2cross%288%29%29D+=+15W\"\r\n" );
document.write( "                                \"D%2F2\" = 15W ---- eq (ii)\r\n" );
document.write( "\r\n" );
document.write( "Each cupcake cost \"2%2F3\" as much as a muffin, so: C = \"%282%2F3%29M+=+2M%2F3\" ---- eq (iii)\r\n" );
document.write( "\r\n" );
document.write( "Each piece of waffle cost $0.20 more than a cupcake, so: W = \".2+%2B+2M%2F3\" ---- eq (iv)\r\n" );
document.write( "\r\n" );
document.write( "\"D%2F2+=+15W\" ------ eq (ii)\r\n" );
document.write( "\"D%2F2+=+15%28.2+%2B+2M%2F3%29\" ---- Substituting \".2+%2B+2M%2F3\" for W, in eq (ii) \r\n" );
document.write( "\"D%2F2+=+3+%2B+10M\"\r\n" );
document.write( "D = 6 + 20M ---- Multiplying by LCD, 2 ---- eq (v)\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( " 3D = 24C + 64M ------ eq (i)\r\n" );
document.write( "\"3D+=+24%282M%2F3%29+%2B+64M\" --- Substituting \"2M%2F3\" for C, in eq (i) \r\n" );
document.write( "3D = 8(2M) + 64M\r\n" );
document.write( "3D = 16M + 64M\r\n" );
document.write( "3D = 80M ---- eq (vi)\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "   D =  6 + 20M ---- eq (v)\r\n" );
document.write( "  3D =      80M ---- eq (vi)\r\n" );
document.write( "  3D = 18 + 60M ---- Multiplying eq (v) by 3 ---- eq (vii)\r\n" );
document.write( "    0 = - 18 + 20M  --- Subtracting eq (vii) from eq (vi)\r\n" );
document.write( "- 20M = - 18\r\n" );
document.write( "Cost of a muffin, or \"highlight_green%28M+=+%28-+18%29%2F%28-+20%29+=+9%2F10+=+highlight%28%22%240.90%22%29%29\"
\n" ); document.write( "
\n" );