document.write( "Question 636706: In a bag containing only blue, red and green marbles, all but 15 are blue, all but
\n" ); document.write( "13 are red and all but 12 are green. How many are red?
\n" ); document.write( "1. 13
\n" ); document.write( "2. 7
\n" ); document.write( "3. 25
\n" ); document.write( "4. 20
\n" ); document.write( "

Algebra.Com's Answer #401189 by KMST(5328)\"\" \"About 
You can put this solution on YOUR website!
Let the number of red marbles be \"r\" .
\n" ); document.write( "Let the number of green marbles be \"g\" .
\n" ); document.write( "Let the number of blue marbles be \"b\" .
\n" ); document.write( "All the marbles means \"r%2Bb%2Bg\" marbles.
\n" ); document.write( "The fact that all but 15 of the marbles are blue means that
\n" ); document.write( "\"r%2Bg=15\" (15 of those marbles are either red or green).
\n" ); document.write( "The fact that all but 13 of the marbles are red means that
\n" ); document.write( "\"g%2Bb=13\" .
\n" ); document.write( "The fact that all but 12 of the marbles are green means that
\n" ); document.write( "\"r%2Bb=12\" .
\n" ); document.write( "We have a system of 3 linear equations with 3 variables:
\n" ); document.write( "\"system%28r%2Bg=15%2Cg%2Bb=13%2Cr%2Bb=12%29\"
\n" ); document.write( "Subtracting the second equation from the first, we get
\n" ); document.write( "\"r%2Bg-%28g%2Bb%29=15-13\" --> \"r%2Bg-g-b=2\" --> \"r-b=2\"
\n" ); document.write( "Adding that to the third equation we get
\n" ); document.write( "\"r%2Bb%2B%28r-b%29=12%2B2\" --> \"r%2Bb%2Br-b=14\" --> \"2r=14\" --> \"2r%2F2=14%2F2\" --> \"highlight%28r=7%29\"
\n" ); document.write( "
\n" );