4 subnet bits is 240 mask which provides , i.e., 16 subnets and provides 14 hosts for each.
In order to achieve the target and provide correct subnet mask, 5 subnet bits are required to be borrowed from the host of a classful network address as then the addition of one more subnet bit would result in 248 mask which in turn gives 5 subnet bits which results in , i.e., 32 subnets and 3 host with 6 host per subnet.