document.write( "Question 308987: A merchant paid $1,800 for a group of men's hat. He sold all but 5 of the hats at $20 more per hat than he paid, thereby making a profit of $200 on the transaction. How many hats did the merchant buy?\r
\n" ); document.write( "\n" ); document.write( "choices:
\n" ); document.write( "A:)20
\n" ); document.write( "B:)25
\n" ); document.write( "C:)30
\n" ); document.write( "D:)35
\n" ); document.write( "

Algebra.Com's Answer #220929 by edjones(8007)\"\" \"About 
You can put this solution on YOUR website!
Let h=number of hats he bought.
\n" ); document.write( "1800/h cost of each hat
\n" ); document.write( "(1800/h)+20 sale price of each hat
\n" ); document.write( "h-5 number of hats he sells
\n" ); document.write( "2000 income from the sale of the hats
\n" ); document.write( ".
\n" ); document.write( "((1800/h)+20)(h-5)=2000
\n" ); document.write( "(1800+20h)(h-5)=2000h multiply each side by h to eliminate fraction.
\n" ); document.write( "20h^2+1700h-9000=2000h
\n" ); document.write( "h^2+85h-450=100
\n" ); document.write( "h^2-15h-450=0
\n" ); document.write( "(h-30)(h+15)=0
\n" ); document.write( "h=30 number of hats he bought.
\n" ); document.write( ".
\n" ); document.write( "Ed
\n" ); document.write( "
\n" );