document.write( "Question 979391: A vending machine sells chips at $0.55 and candy at $0.75. Last month, the vending machine yielded $189.00 with the sale of 280 items.
\n" ); document.write( "Let x be the number of chips sold and y the number of candies. How many packages of chips were purchased last month?
\n" ); document.write( "

Algebra.Com's Answer #600659 by Edwin McCravy(20060)\"\" \"About 
You can put this solution on YOUR website!
A vending machine sells chips at $0.55 and candy at $0.75. Last month, the
\n" ); document.write( "vending machine yielded $189.00 with the sale of 280 items.
\n" ); document.write( "Let x be the number of chips sold and y the number of candies. How many packages
\n" ); document.write( "of chips were purchased last month?\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "Let the number of chips be x\r\n" );
document.write( "Let the number of candies be y\r\n" );
document.write( "                      Value      Value\r\n" );
document.write( "Type       Number       of         of\r\n" );
document.write( " of          of        EACH       ALL\r\n" );
document.write( "item        items      item      items\r\n" );
document.write( "-------------------------------------------\r\n" );
document.write( "chips         x      $0.55     $0.55x\r\n" );
document.write( "candies       y      $0.75     $0.75y\r\n" );
document.write( "-------------------------------------------\r\n" );
document.write( "TOTALS      280      -----     $1890\r\n" );
document.write( "\r\n" );
document.write( " The first equation comes from the second column.\r\n" );
document.write( "\r\n" );
document.write( "  \"%28matrix%283%2C1%2CNumber%2Cof%2Cchips%29%29\"\"%22%22%2B%22%22\"\"%28matrix%283%2C1%2CNumber%2Cof%2Ccandies%29%29\"\"%22%22=%22%22\"\"%28matrix%284%2C1%2Ctotal%2Cnumber%2Cof%2Citems%29%29\"\r\n" );
document.write( "  x + y = 280\r\n" );
document.write( "  \"%28matrix%284%2C1%2CValue%2Cof%2CALL%2Cchips%29%29\"\"%22%22%2B%22%22\"\"%28matrix%284%2C1%2CValue%2Cof%2CALL%2Ccandys%29%29\"\"%22%22=%22%22\"\"%28matrix%285%2C1%2CTotal%2Cvalue%2Cof%2CALL%2Citems%29%29\"\r\n" );
document.write( "\r\n" );
document.write( "0.55x + 0.75y = 1890\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( "     55x + 75y = 18900\r\n" );
document.write( "\r\n" );
document.write( " So we have the system of equations:\r\n" );
document.write( "\"system%28x+%2B+y+=+280%2C55x+%2B+75y+=+18900%29\".\r\n" );
document.write( "\r\n" );
document.write( "We solve by substitution.  Solve the first equation for y:\r\n" );
document.write( "\r\n" );
document.write( "  x + y = 280\r\n" );
document.write( "      y = 280 - x\r\n" );
document.write( "\r\n" );
document.write( "Substitute (280 - x) for y in 55x + 75y = 18900\r\n" );
document.write( " \r\n" );
document.write( "     55x + 75(280 - x) = 18900\r\n" );
document.write( "     55x + 21000 - 75x = 18900\r\n" );
document.write( "          -20x + 21000 = 18900\r\n" );
document.write( "                  -20x = -2100\r\n" );
document.write( "                     x = 105 = the number of chips.\r\n" );
document.write( "\r\n" );
document.write( "Substitute in y = 280 - x\r\n" );
document.write( "              y = 280 - (105)\r\n" );
document.write( "              y = 175 candies.\r\n" );
document.write( "The number of candies is 280-x or 280-105 or 175 candies.\r\n" );
document.write( "\r\n" );
document.write( "Checking:  105 chips is $0.55*105 = $57.75 and \r\n" );
document.write( "           175 candies is $0.75*175 = $131.25\r\n" );
document.write( "            That's 280 items.\r\n" );
document.write( "            And indeed $57.75 + $131.25 = $189.00\r\n" );
document.write( "Edwin

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