Variable length subnetting

I have one network id 192.168.12.0 (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.

192.168.1.0 to 192.168.1.63 for 40 hosts from 64 Blocksize
and after that use 32 blocksize blocks.