Subnetting is a skill you build by doing questions, not by reading about it. This path gives you one method, the block size, and then five kinds of practice question, from turning a prefix into a mask to deciding whether two hosts share a subnet.
Each practice question has a Show me how button that walks through the working. Use it freely at first; move on from a step when you can answer five in a row without it.