document.write( "Question 773272: The ratio fo red jelly beans to yellow jelly beans in a dish is 3:4. If Greg eats 3 red jelly beans and 6 yellow ones, the ratio is 4:5. How many jelly beans were originally in the dish?\r
\n" ); document.write( "\n" ); document.write( "3/4 = RJB/YJB
\n" ); document.write( "4rjb = 3yjb
\n" ); document.write( "4(rjb-3) = 3(yjb-6)
\n" ); document.write( "

Algebra.Com's Answer #471397 by josgarithmetic(39625)\"\" \"About 
You can put this solution on YOUR website!
You are asking if you are solving correctly.\r
\n" ); document.write( "\n" ); document.write( "Let r = how many red jelly beans
\n" ); document.write( "let y = how many yellow jelly beans\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Originally, \"r%2Fy=3%2F4\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Ate 3 red beans so now r-3 red beans in the dish;
\n" ); document.write( "Ate 6 yellow beans, so y-6 yellow beans still in the jar.
\n" ); document.write( "\"%28r-3%29%2F%28y-6%29=4%2F5\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Two equations in the two unknowns r and y.
\n" ); document.write( "ORIGINAL EQUATION
\n" ); document.write( "\"4r=3y\"
\n" ); document.write( "\"4r-3y=0\"
\n" ); document.write( "EATEN EQUATION
\n" ); document.write( "\"4%28y-6%29=5%28r-3%29\"
\n" ); document.write( "\"4y-24=5r-15\"
\n" ); document.write( "\"4y-25%2B15=5r\"
\n" ); document.write( "\"4y-10=5r\"
\n" ); document.write( "\"5r-4y=-10\"\r
\n" ); document.write( "\n" ); document.write( "SYSTEM TO SOLVE MAY BE:
\n" ); document.write( "\"highlight%285r-4y=-10%29\" and \"highlight%284r-3y=0%29\"
\n" ); document.write( "Multiply by 3 for eaten equation, multiply by 4 for original equation
\n" ); document.write( "in these forms, and obtain,...
\n" ); document.write( "\"15r-12y=-30\" and \"16r-12y=0\".
\n" ); document.write( "Subtracting the \"0\" equation from the \"-30\" equation, obtain:
\n" ); document.write( "\"-1%2Ar=-30\"
\n" ); document.write( "\"highlight%28r=30%29\" and then this means \"y=r%284%2F3%29\" from original ratio, \"y=30%284%2F3%29=highlight%2840%29\"
\n" ); document.write( "____________________________________________________________
\n" ); document.write( "Originally 30 red jelly beans and 40 yellow jelly beans
\n" ); document.write( "____________________________________________________________
\n" ); document.write( "
\n" );