The domain of this function is first restricted to all nonnegative integers because the ferry can carry only a whole number number of cars.
The domain is restricted to number less than or equal to 42 because the ferry cannot carry more cars than capacity .