An obvious solution is to build more schools in places where girls and boys must be educated separately. In poor Muslim countries like Pakistan, Yemen, and Morocco, single-sex schooling is the norm, but many rural areas can afford only one public school, which is usually set aside for boys.