document.write( "Question 969119: You are selling hot dogs and sodas. Each hot dog costs $1.50 and each soda cost $0.50. At the end of the game you made a total of $78.50.You sold a total of 87 hot dogs and sodas combined. How many hot dogs and soda were sold? \n" ); document.write( "
Algebra.Com's Answer #592079 by Edwin McCravy(20056)\"\" \"About 
You can put this solution on YOUR website!
\r\n" );
document.write( "Let the number of hot dogs be x.\r\n" );
document.write( "Then the number of sodas, using\r\n" );
document.write( "ONE PART = TOTAL MINUS OTHER PART,\r\n" );
document.write( "is 87-x.\r\n" );
document.write( "                      Money      Money\r\n" );
document.write( "          Number      from       from\r\n" );
document.write( "           sold       EACH        ALL\r\n" );
document.write( "-------------------------------------------\r\n" );
document.write( "hot dogs     x        $1.50     $1.50x\r\n" );
document.write( "sodas      87-x       $0.50     $0.50(87-x)\r\n" );
document.write( "-------------------------------------------\r\n" );
document.write( "TOTALS      87        -----    $78.50\r\n" );
document.write( "\r\n" );
document.write( " The equation comes from the column on the right\r\n" );
document.write( "\r\n" );
document.write( "\"%28matrix%284%2C1%2Cmoney%2Cfrom%2CALL%2Chot_dogs%29%29\"\"%22%22%2B%22%22\"\"%28matrix%284%2C1%2CMoney%2Cfrom%2CALL%2Csodas%29%29\"\"%22%22=%22%22\"\"%28matrix%284%2C1%2CTotal%2Cmoney%2Ctaken%2Cin%29%29\"\r\n" );
document.write( "\r\n" );
document.write( "1.50x + 0.50(87-x) = 78.50\r\n" );
document.write( "\r\n" );
document.write( "Get rid of decimals by multiplying every term by 100:\r\n" );
document.write( "\r\n" );
document.write( "   150x + 50(87-x) = 7850\r\n" );
document.write( "\r\n" );
document.write( " 150x + 4350 - 50x = 7850\r\n" );
document.write( "\r\n" );
document.write( "       100x + 4350 = 7850\r\n" );
document.write( "\r\n" );
document.write( "              100x = 3500\r\n" );
document.write( "\r\n" );
document.write( "                 x = 35 = the number of hot dogs.\r\n" );
document.write( "\r\n" );
document.write( "The number of sodas is 87-x or 87-35 or 52 sodas.\r\n" );
document.write( "\r\n" );
document.write( "Checking:  35 hot dogs is $52.50 and 52 sodas is $26.00\r\n" );
document.write( "\r\n" );
document.write( "            And indeed $52.50 + $26.00 = $78.50\r\n" );
document.write( "\r\n" );
document.write( "Edwin

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