document.write( "Question 368247: Please help me solve this word problem.\r
\n" ); document.write( "\n" ); document.write( "30 students bought pennants.
\n" ); document.write( "The plain pennants cost $4.
\n" ); document.write( "The fancy pennants cost $8.
\n" ); document.write( "The total cost if all pennants is $186.
\n" ); document.write( "How many fancy pennants were purchased?
\n" ); document.write( "

Algebra.Com's Answer #262469 by Fombitz(32388)\"\" \"About 
You can put this solution on YOUR website!
Let P be the number of plain pennants, F fancy pennants.
\n" ); document.write( "Total number of pennants:
\n" ); document.write( "1.\"P%2BF=30\"
\n" ); document.write( "Total value of pennants:
\n" ); document.write( "\"4P%2B8F=186\"
\n" ); document.write( "2.\"2P%2B4F=93\"
\n" ); document.write( "Multiply eq. 1 by (-2) and add to eq. 2,
\n" ); document.write( "\"-2P-2F%2B2P%2B4F=-60%2B93\"
\n" ); document.write( "\"2F=33\"
\n" ); document.write( "\"F=33%2F2\"
\n" ); document.write( "There is a problem with your problem setup.
\n" ); document.write( "The expected numbers for P and F are integers unless someone buys 1/2 of a pennant.
\n" ); document.write( "Please check the problem and re-post.
\n" ); document.write( "
\n" ); document.write( "
\n" );