a) the number of books in a library is an integer, with no possibility of a decimal value, so it is discrete.
b) the length of time it takes to get to work is a real number, with any decimal value possible between two integer values, so it is continuous.