document.write( "Question 1189278: A jar contains red, white, and yellow candy pieces
\n" ); document.write( "in the ratio 9:5:4 of respectively. When 7 pieces of red
\n" ); document.write( "candy and 5 pieces of white candy are removed
\n" ); document.write( "from the jar and 3 pieces of yellow candy are added,
\n" ); document.write( "the ratio of red to white to yellow becomes 4: 2: 3.
\n" ); document.write( "If the jar contains only these three colors of candy,
\n" ); document.write( "how many pieces were originally in the jar?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #820592 by ikleyn(52788)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "A jar contains red, white, and yellow candy pieces
\n" ); document.write( "in the ratio 9:5:4 of respectively. When 7 pieces of red
\n" ); document.write( "candy and 5 pieces of white candy are removed
\n" ); document.write( "from the jar and 3 pieces of yellow candy are added,
\n" ); document.write( "the ratio of red to white to yellow becomes 4: 2: 3.
\n" ); document.write( "If the jar contains only these three colors of candy,
\n" ); document.write( "how many pieces were originally in the jar?
\n" ); document.write( "~~~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "From the condition, we can write\r\n" );
document.write( "\r\n" );
document.write( "    R = 9x,  W = 5x,  Y = 4x\r\n" );
document.write( "\r\n" );
document.write( "for the number of red, white and yellow candy pieces in the jar originally,\r\n" );
document.write( "where x is the common factor (multiplier).\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "According to the condition, we have this proportion\r\n" );
document.write( "\r\n" );
document.write( "    \"%289x-7%29%2F%285x-5%29\" = \"4%2F2\" = 2,\r\n" );
document.write( "\r\n" );
document.write( "which gives\r\n" );
document.write( "\r\n" );
document.write( "    9x - 7 = 2*(5x-5)\r\n" );
document.write( "\r\n" );
document.write( "    9x - 7 = 10x - 10\r\n" );
document.write( "\r\n" );
document.write( "    10 - 7 = 10x - 9x\r\n" );
document.write( "\r\n" );
document.write( "       x = 3.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "At this point, we can just answer the problem's question: R = 27,  W = 15,  Y = 12.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The last condition is EXCESSIVE, and we should check that it does not contradict to \r\n" );
document.write( "(is consistent with) the answer.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "CHECK.  After manipulations, the jar contains  R = 20,  W = 10  and Y = 15 candy pieces,\r\n" );
document.write( "\r\n" );
document.write( "       so this proportionality  4 : 2 : 3  is held for the final state.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved and explained.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );