A program of education shall be provided for by the department of social and health services or the department of children, youth, and families and the several school districts of the state for common school-age persons who have been admitted to facilities staffed and maintained or contracted pursuant to RCW
13.40.320 by the department of social and health services or the department of children, youth, and families for the education and treatment of juveniles who have been diverted or who have been found to have committed a juvenile offense. The division of duties, authority, and liabilities of the department of social and health services or the department of children, youth, and families and the several school districts of the state respecting the educational programs shall be the same in all respects as set forth in this chapter respecting programs of education for state residential school residents. For the purposes of this section, the term "residential school" or "schools" as used in this chapter shall be construed to mean a facility staffed and maintained by the department of social and health services or the department of children, youth, and families or a program established under RCW
13.40.320, for the education and treatment of juvenile offenders on probation or parole. Nothing in this section shall prohibit a school district from utilizing the services of an educational service district subject to RCW
28A.310.180.