There are seven different ways in which the money may be distributed: 5
women and 19 men, 10 women and 16 men, 15 women and 13 men, 20 women and
10 men, 25 women and 7 men, 30 women and 4 men, and 35 women and 1 man.
But the last case must not be counted, because the condition was that
there should be "men," and a single man is not men. Therefore the answer
is six years.