Any compensation for the use of a schoolhouse and schoolhouse grounds shall be paid into the general fund and be expended in the upkeep and repair of and in purchasing supplies for that school property.