Title: Optimality of structure, organisation and finance in systems of education