This information is readily available online if you know what to search for. Specifically "Subnet Calculator."
24 in that context is sometimes referred to that way but really it is the number of bits in the netmask.
Honestly your question could easily be closed as your question does not have enough detail to make it specifically about an Apple product or service.
Please edit your question to give all of the details of what exactly you are doing and what results you are getting and what results you need/want. That may help to answer your question.