document.write( "Question 714077: A vending machine sells chips at 0.40 and candy at 0.50 Last month the vending machine yield 139.80 with the sale of 298 items How many packages of chips were purchased last month \n" ); document.write( "
Algebra.Com's Answer #438681 by rfer(16322)\"\" \"About 
You can put this solution on YOUR website!
x=chips
\n" ); document.write( "y=candy
\n" ); document.write( "------------
\n" ); document.write( "x+y=298
\n" ); document.write( "x=298-y
\n" ); document.write( "-------------
\n" ); document.write( "0.40x+0.50y=139.80
\n" ); document.write( "0.40(298-y)+0.50y=139.80
\n" ); document.write( "119.2-0.40y+0.50y=139.80
\n" ); document.write( "0.10y=139.80-119.2
\n" ); document.write( "0.10y=20.6
\n" ); document.write( "y=20.6/0.10
\n" ); document.write( "y=206 candy
\n" ); document.write( "x=298-206
\n" ); document.write( "x=92 chips
\n" ); document.write( "
\n" );