The adjustment school shall receive into its care, custody, and control all boys and girls under 18 years of age who are committed to it by order of the juvenile court of the county or city and county maintaining or contributing to the maintenance of the adjustment school.