document.write( "Question 811220: There are 24 pieces of gum in a bag. Some are spearmint and the rest are peppermint. If each spearmint piece cost you 7 cents and each peppermint cost 5 cents, how many of each flavor do you have if together they cost you $1.40? \n" ); document.write( "
Algebra.Com's Answer #488646 by josgarithmetic(39617)\"\" \"About 
You can put this solution on YOUR website!
x and y for counts of the spearmint and the peppermint.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"x%2By=24\" and \"7x%2B5y=140\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Note carefully that the 140 is in units of \"CENTS\".\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Multiply the mint count equation by 5, and subtract it from the money account equationn, and directly solve for x. Use this value to find y.
\n" ); document.write( "
\n" );