Variable length subnetting

I have one network id (Class c ), required 5 subnet, in 4 subnets required 25 host and 5th subnet required 40 host, how i can do this??

4 subnets of 32 hosts and one subnet of 64. to for 40 hosts from 64 Blocksize
and after that use 32 blocksize blocks.