Complex sentence: Units can be only-male, only-female or coeducational; in the latter case they have to be led by a male leader and a female leader.
Split into simpler sentences: Units can be only-male, only-female or coeducational. In the latter case they have to be led by a male leader and a female leader.