document.write( "Question 622369: I am having trouble setting up the equation to solve this problem. A bag contains 42 coins, with a total weight of 246 grams. if the bag contains only gold coins that weigh 8 grams each and silver coins that weigh 5 grams each, how many gold and how many silver coins are in the bag?\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #391336 by htmentor(1343)\"\" \"About 
You can put this solution on YOUR website!
Let g = the number of gold coins weighing 8 g
\n" ); document.write( "Then 42 - g = the number of silver coins weighing 5 g
\n" ); document.write( "We can write the following expression for the total weight:
\n" ); document.write( "246 = 8g + 5(42-g)
\n" ); document.write( "Simplify and solve for g:
\n" ); document.write( "246 = 8g + 210 - 5g
\n" ); document.write( "3g = 36
\n" ); document.write( "g = 12
\n" ); document.write( "So there are 12 gold coins and 30 silver coins
\n" ); document.write( "Check:
\n" ); document.write( "12*8 + 30*5 = 96 + 150 = 246
\n" ); document.write( "
\n" );