\n" );
document.write( "You have enough information to figure out the number of red and green marbles:
\n" );
document.write( "From \"350 marbles\" and \"40% of them were red\": 350*0.40 = 140 red\r
\n" );
document.write( "\n" );
document.write( "10% more red than green: g + 0.10*g = 140 --> 1.10g = 140 --> g = 140/1.1 = 127.27 (this is a problem, marbles must come in whole numbers). \r
\n" );
document.write( "\n" );
document.write( "In this sense, the problem can not be solved. That is, you generally count marbles in whole units, so a fractional number of green marbles makes no sense. \r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "----
\n" );
document.write( "Below is an EXAMPLE problem that can be solved
\n" );
document.write( "----
\n" );
document.write( "If there were 330 marbles total, you'd have 0.4*330 = 132 red, 132/1.1 = 120 green, and then you could say (orange) + (white) = 78 ( 78 = 330-132-120) \r
\n" );
document.write( "\n" );
document.write( "Since we are also told (white) = 2*(orange) we can re-write the (orange)+(white) equation as\r
\n" );
document.write( "\n" );
document.write( " (orange) + 2*(orange) = 78
\n" );
document.write( " 3*(orange) = 78 ---> orange = 26\r
\n" );
document.write( "\n" );
document.write( "and (white) = 2*(26) = 52\r
\n" );
document.write( "\n" );
document.write( "# red = 132
\n" );
document.write( "# green = 120
\n" );
document.write( "# white = 52
\n" );
document.write( "# green = 26
\n" );
document.write( "--------------
\n" );
document.write( "Total = 330 So, for 330 marbles, the problem works, but not for 350.\r
\n" );
document.write( "\n" );
document.write( "The given total number of marbles must be divisible by 3, 10, and 11 in order for the problem to work out (330, 660, etc.). \r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "
\n" );
document.write( "