document.write( "Question 760541: 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? \n" ); document.write( "
Algebra.Com's Answer #462718 by Stitch(470)\"\" \"About 
You can put this solution on YOUR website!
Let A = number of gold coins
\n" ); document.write( "Let b = number os silver coins
\n" ); document.write( "Equation 1: \"A+%2B+B+=+42\"
\n" ); document.write( "Equation 2: \"8A+%2B+5B+=+246\"
\n" ); document.write( "-------------------------------
\n" ); document.write( "Solve equation 1 for one of the variables.
\n" ); document.write( "Equation 1: \"A+%2B+B+=+42\"
\n" ); document.write( "\"A+=+42+-+B\"
\n" ); document.write( "Now plug (42 - B) into equation 2 for A
\n" ); document.write( "Equation 2: \"8A+%2B+5B+=+246\"
\n" ); document.write( "\"8%2A%2842+-+B%29+%2B+5B+=+246\"
\n" ); document.write( "Simplify the equation.
\n" ); document.write( "\"336+-+8B+%2B+5B+=+246\"
\n" ); document.write( "Combine like terms.
\n" ); document.write( "\"336+-+3B+=+246\"
\n" ); document.write( "Add 3B to both sides
\n" ); document.write( "\"336+=+246+%2B+3B\"
\n" ); document.write( "Subtract 246 from both sides.
\n" ); document.write( "\"90+=+3B\"
\n" ); document.write( "Divide both sides by 3.
\n" ); document.write( "\"highlight%2830+=+B%29\"
\n" ); document.write( "Now solve for A while using B = 30,
\n" ); document.write( "\"A+=+42+-+B\"
\n" ); document.write( "\"A+=+42+-+%2830%29\"
\n" ); document.write( "\"highlight_green%28A+=+12%29\"
\n" ); document.write( "
\n" );