High school tuition for pupils who have completed 8 grades of work as evidenced by the written statement of the superintendent of the school district in which the pupils reside, or by the written statement of the intermediate superintendent for pupils residing in a district not employing a superintendent, shall be paid by the board of the resident district by agreement with the board of the district of attendance.