Answer:
Domain: 
Number of pieces of candy: Discrete variable.
Domain of the function: 
Step-by-step explanation:
Let
. From Function Theory, we know that domain represents the set of values of the independent function, defined by the variable
in this case, whereas the range represents the set of values associated with the domain, defined by the variable
in this case.
Since
represents the number of pieces of candy, this variable has a discrete nature.
In addition, this linear function has a domain represented by the set of natural number and the zero element.