The government and control of any school in the consolidated territory lying within two counties formed in accordance with the resolution of the boards shall be vested in the county board of education of the county in which the school building is located or is to be located, unless otherwise provided by agreement between the boards of education of the counties concerned.