document.write( "Question 1006469: A bag contains some silver balls and golden balls. If you remove one silver ball from the bag, 1/7 of the remaining balls in the bag are silver. If you remove 2 GOLDEN balls from the bag, 1/5 of the remaining balls in the bag are silver. How many balls are there in the bag at first?\r
\n" ); document.write( "\n" ); document.write( "Please have a clear explanation, thanks!
\n" ); document.write( "

Algebra.Com's Answer #622598 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+g+\" = number of golden balls in bag at first
\n" ); document.write( "Let \"+s+\" = number of silver balls in bag at first
\n" ); document.write( "\"+g+%2B+s+\" = total number of balls in bag at first
\n" ); document.write( "-----------------------------------------
\n" ); document.write( "given:
\n" ); document.write( "(1) \"+%28+s-1+%29+%2F+%28+s+-+1+%2B+g+%29+=+1%2F7+\"
\n" ); document.write( "( note that \"+s+-+1+%2B+g+\" are the number of balls remaining in bag )
\n" ); document.write( "(2) \"+s+%2F+%28+s+%2B+g+-+2+%29+=+1%2F5+\"
\n" ); document.write( "( \"+s+%2B+g+-+2+\" are number of balls remaining in bag )
\n" ); document.write( "--------------------------
\n" ); document.write( "Multiply both sides of (1) by \"+7%2A%28+s+-+1+%2B+g+%29+\"
\n" ); document.write( "(1) \"+7s+-+7+=+s+-+1+%2B+g+\"
\n" ); document.write( "(1) \"+g+-+6s+=+-6+\"
\n" ); document.write( "--------------------
\n" ); document.write( "Multiply both sides of (2) by \"+5%2A%28+s+%2B+g+-+2+%29+\"
\n" ); document.write( "(2) \"+5s+=+s+%2B+g+-+2+\"
\n" ); document.write( "(2) \"+g+-+4s+=+2+\"
\n" ); document.write( "------------------
\n" ); document.write( "Subtract (1) from (2)
\n" ); document.write( "(2) \"+g+-+4s+=+2+\"
\n" ); document.write( "(1) \"+-g+%2B+6s+=+6+\"
\n" ); document.write( "-------------------
\n" ); document.write( "\"+2s+=+8+\"
\n" ); document.write( "\"+s+=+4+\"
\n" ); document.write( "and
\n" ); document.write( "(2) \"+g+-+4s+=+2+\"
\n" ); document.write( "(2) \"+g+-+4%2A4+=+2+\"
\n" ); document.write( "(2) \"+g+-+16+=+2+\"
\n" ); document.write( "(2) \"+g+=+18+\"
\n" ); document.write( "---------------
\n" ); document.write( "\"+4+%2B+18+=+22+\"
\n" ); document.write( "There are 22 balls in the bag at first
\n" ); document.write( "-----------------------------
\n" ); document.write( "check the answer:
\n" ); document.write( "Remove 1 silver ball
\n" ); document.write( "There are \"+4+-+1+=+3+\" silver balls left
\n" ); document.write( "There are \"+22+-+1+=+21+\" total balls left
\n" ); document.write( "\"+3%2F21+=+1%2F7+\"
\n" ); document.write( "\"+1%2F7+=+1%2F7+\"
\n" ); document.write( "OK
\n" ); document.write( "---------
\n" ); document.write( "Remove 2 golden balls
\n" ); document.write( "There are \"+18+-+2+=+16+\" golden balls left
\n" ); document.write( "There are \"+4+%2B+16+=+20+\" total balls left
\n" ); document.write( "\"+4%2F20+=+1%2F5+\"
\n" ); document.write( "\"+1%2F5+=+1%2F5+\"
\n" ); document.write( "OK
\n" ); document.write( "
\n" );