Free notebooks were distributed equally among children of a class. The number of notebooks each child got was one-eighth of the number of children. Had the number of children been half, each child would have got 16 notebooks. Total how many notebooks were distributed ?
Let total number of children be $ x $.
Then, $ x \times \dfrac{1}{8} x $ = $\left(\dfrac{x}{2}\times 16\right)$ $\Leftrightarrow $ x = 64.
$\therefore$ Number of notebooks =$ \dfrac{1}{8} x $2 =$ \left(\dfrac{1}{8} \times 64 \times 64\right)$= 512.