Match the "Slash format" number with the mask number to subnet the last octet.