He had walked 8 blocks, and that was 25% (or .25) of the distance to the school. Let’s let “D” represent the total distance...
D x .25 = 8 blocks
Divide both sides of the equation to solve for D...
D = 8 / .25 = 32
So the total number of blocks to his school is 32.