Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
As Fer said to get 5 subnet u use a /27 with the no of valid subnets as 8 and a block size of 32 with 30 being the valid hosts ( remember one goes for n/w address and one for broadcast ) so now.. calculate the rangeValid subnets --> 0,32,64,96,128,16...