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 . how many notebooks were distributed in all ?