document.write( "Question 830192: Please help me solve this problem. Of a group of boys and girls at Central Middle School's after-school party, 15 girls left early to play in a volleyball game. The ratio of boys to girls then remaining was 2 to 1. Later, 45 boys left for a football game. The ratio of girls to boys was then 5 to 1. How many students attended the party? \n" ); document.write( "
Algebra.Com's Answer #500400 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
let b = original number of boys
\n" ); document.write( "let g = original number of girls
\n" ); document.write( ":
\n" ); document.write( " Of a group of boys and girls at Central Middle School's after-school party, 15 girls left early to play in a volleyball game.
\n" ); document.write( " The ratio of boys to girls then remaining was 2 to 1.
\n" ); document.write( "\"b%2F%28%28g-15%29%29\" = \"2%2F1\"
\n" ); document.write( "Cross multiply
\n" ); document.write( "b = 2(g-15)
\n" ); document.write( "b = 2g - 30
\n" ); document.write( ":
\n" ); document.write( "Later, 45 boys left for a football game. The ratio of girls to boys was then 5 to 1.
\n" ); document.write( "\"%28%28g-15%29%29%2F%28%28b-45%29%29\" = \"5%2F1\"
\n" ); document.write( "cross multiply
\n" ); document.write( "g - 15 = 5(b-45)
\n" ); document.write( "g - 15 = 5b - 225
\n" ); document.write( "g = 5b - 225 + 15
\n" ); document.write( "g = 5b - 210
\n" ); document.write( "Replace b with (2g-30)
\n" ); document.write( "g = 5(2g-30) - 210
\n" ); document.write( "g = 10g - 150 - 210
\n" ); document.write( "g = 10g - 360
\n" ); document.write( "360 = 10g - g
\n" ); document.write( "360 = 9g
\n" ); document.write( "g = 360/9
\n" ); document.write( "g = 40 girls originally
\n" ); document.write( "find b
\n" ); document.write( "b = 2(40) - 30
\n" ); document.write( "b = 50 boys originally
\n" ); document.write( "\" How many students attended the party?\"
\n" ); document.write( "40 + 50 = 90 students
\n" ); document.write( "
\n" );