document.write( "Question 220420: Hi - I got the answer to this by working it out but I cannot get to an equation. Can you help me?\r
\n" ); document.write( "\n" ); document.write( "A class has a boy-girl ratio of 5:3. Three more girls join the class, changing the ratio of 10:7. How many students are now in the class?\r
\n" ); document.write( "\n" ); document.write( "By trying and just plugging in numbers I got 30 and 18 plus 3 more, so now the total is 51 - but I'm not sure how to set it up as a problem!\r
\n" ); document.write( "\n" ); document.write( "Thank you!
\n" ); document.write( "

Algebra.Com's Answer #165486 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
A class has a boy-girl ratio of 5:3. Three more girls join the class, changing the ratio of 10:7. How many students are now in the class?
\n" ); document.write( "By trying and just plugging in numbers I got 30 and 18 plus 3 more, so now the total is 51 - but I'm not sure how to set it up as a problem!
\n" ); document.write( "-----
\n" ); document.write( "let b = number of boys.
\n" ); document.write( "let g = number of girls.
\n" ); document.write( "-----
\n" ); document.write( "b/g = 5/3
\n" ); document.write( "this means that b = 5g/3
\n" ); document.write( "-----
\n" ); document.write( "add 3 girls and the ratio becomes 10/7
\n" ); document.write( "this means that:
\n" ); document.write( "b/(g+3) = 10/7
\n" ); document.write( "this means that:
\n" ); document.write( "b = (10g + 30)/7
\n" ); document.write( "-----
\n" ); document.write( "since both these equations equal to b, then they must equal to each other.
\n" ); document.write( "you get:
\n" ); document.write( "5g/3 = (10g + 30)/7
\n" ); document.write( "multiply both sides by 7 and you get:
\n" ); document.write( "35g/3 = 10g + 30
\n" ); document.write( "multiply both sides by 3 to get:
\n" ); document.write( "35g = 30g + 90
\n" ); document.write( "subtract 30g from both sides to get:
\n" ); document.write( "5g = 90
\n" ); document.write( "divide both sides by 5 to get:
\n" ); document.write( "g = 18
\n" ); document.write( "-----
\n" ); document.write( "original ratio led to bg = 5g/3
\n" ); document.write( "5*18/3 = 5*6 = 30
\n" ); document.write( "original class size is 30 boys and 18 girls.
\n" ); document.write( "-----
\n" ); document.write( "add 3 girls and the class size is 30 boys and 21 girls.
\n" ); document.write( "boy to girl ratio is now 30/21 which equals 10/7
\n" ); document.write( "-----\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );