\n" );
document.write( "One way to solve is to list the possible values for each of the two bus capacities. For the 40-capacity case, note that 60 kids is the first number
\n" );
document.write( " that has 20 left over, and we then add 40 for each additional bus.\r
\n" );
document.write( "\n" );
document.write( " 40 36
\n" );
document.write( " ---- ----
\n" );
document.write( " 60 48
\n" );
document.write( " 100 84
\n" );
document.write( " 140 120
\n" );
document.write( " 180 156
\n" );
document.write( " 220 192
\n" );
document.write( " 260 228
\n" );
document.write( " 300 264
\n" );
document.write( " 300\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "The number of kids is 300. The number of buses, however, can not be determined from the problem statement. In the case where each bus holds 40, then there are 7 buses, but if each bus holds 36, then there are 8 buses. If each bus holds 30 kids, then there are 10, etc.\r
\n" );
document.write( "\n" );
document.write( "---
\n" );
document.write( "Oh thanks tutor ikleyn, I see the 2nd case of buses with capacity 36, the problem mentions VACANT seats.... while I incorrectly treated that portion of the problem as though there was a shortage of seats.
\n" );
document.write( "