document.write( "Question 324943: The average age of all the students of a class is 18.0 years. The average age of boys of the class is 20 years and that of the girls is 15 years. If the number of girls in the class is 20, then find the number of boys in the class? \n" ); document.write( "
Algebra.Com's Answer #232704 by Fombitz(32388)\"\" \"About 
You can put this solution on YOUR website!
Let B be the sum of the boys' ages, G the sum of the girls' ages.
\n" ); document.write( "Let Ng be the number of girls, Nb the number of boys.
\n" ); document.write( ".
\n" ); document.write( ".
\n" ); document.write( ".
\n" ); document.write( "1.\"%28B%2BG%29%2F%28Ng%2BNb%29=18\"
\n" ); document.write( "2.\"B%2FNb=20\"
\n" ); document.write( "3.\"G%2FNg=15\"
\n" ); document.write( "4.\"Ng=20\"
\n" ); document.write( "From eq. 3 and 4,
\n" ); document.write( "\"G=300\"
\n" ); document.write( "From eq. 2,
\n" ); document.write( "\"B=20Nb\"
\n" ); document.write( "Substitute into eq. 1,
\n" ); document.write( "\"%2820Nb%2B300%29%2F%2820%2BNb%29=18\"
\n" ); document.write( "\"20Nb%2B300=18%2820%2BNb%29\"
\n" ); document.write( "\"20Nb%2B300=360%2B18Nb\"
\n" ); document.write( "\"2Nb=60\"
\n" ); document.write( "\"highlight%28Nb=30%29\"
\n" ); document.write( "
\n" );