(a) 2m + n + p − 1
Each of the object, i.e book, pen or pencil, can either be selected or not selected.
So, each of the object will have two outcomes, i.e selection or rejection.
Number of ways of selecting all the books = 222.....m times = 2m
Number of ways of selecting all the pens = 2n
Number of ways of selecting all the pencils = 2p
Thus, by fundamental principle of counting, total number of ways = 2m2n2p = 2m+n+p
But, of all these ways, there is one way in which all the objects are rejected, which is not valid. Hence, it needs to be subtracted.
∴ Total number of valid selections = 2m + n + p − 1