document.write( "Question 790942: Henry paid 80 cents for a bag of peanuts. He sold all but 20 of them for $1.50 and made a profit of 54 dollars. How many bafs did he buy? \n" ); document.write( "
Algebra.Com's Answer #479479 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
Henry paid 80 cents for a bag of peanuts.
\n" ); document.write( " He sold all but 20 of them for $1.50 and made a profit of 54 dollars.
\n" ); document.write( " How many bags did he buy?
\n" ); document.write( ":
\n" ); document.write( "let b = no. of bags bought
\n" ); document.write( "then
\n" ); document.write( "(b-20) = no. of bags sold
\n" ); document.write( ":
\n" ); document.write( "Retail - wholesale = profit
\n" ); document.write( "1.50(b-20) - .80b = 54
\n" ); document.write( "1.5b - 30 - .80b = 54
\n" ); document.write( "1.5b - .80b = 54 + 30
\n" ); document.write( ".70b = 84
\n" ); document.write( "b = 84/.7
\n" ); document.write( "b = 120 bag bought
\n" ); document.write( ":
\n" ); document.write( ":
\n" ); document.write( "See if that works
\n" ); document.write( "100*1.50 = $150
\n" ); document.write( "120* .80 = $96
\n" ); document.write( "------------------
\n" ); document.write( "profit: $54\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );