document.write( "Question 1203168: Barry has a bag of marbles. 3/8 of the marbles are red. 70% of the remaining marbles are yellow. The other 12 marbles are green. How many marbles are there in the bag altogether? \n" ); document.write( "
Algebra.Com's Answer #838529 by greenestamps(13200)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "Given that 3/8 of the marbles are red, let 8x be the total number of marbles and 3x be the number of red marbles. Then the number of marbles of other colors is 8x-3x = 5x.

\n" ); document.write( "70% of the remaining marbles are yellow. 70% of 5x is 0.7(5x) = 3.5x.

\n" ); document.write( "The total number of red and yellow marbles is 3x+3.5x = 6.5x; the total number of marbles is 8x. So the number of green marbles is 8x-6.5x = 1.5x.

\n" ); document.write( "The number of green marbles is 12:

\n" ); document.write( "1.5x = 12
\n" ); document.write( "x = 12/1.5 = 8

\n" ); document.write( "ANSWER: The total number of marbles in the bag is 8x = 64

\n" ); document.write( "
\n" ); document.write( "
\n" );