The bag contains 42 cups of dog food. If the dog eats cups everyday, the amount of cup in the bag decreases by cups everyday. This can be represented with this expression: 42 - d. Where d represents the number of days.
In order to determine the number of days in which the bag would be emptied, this equation can be used:
Number of days the dog food would last = number of cups in the cup / amount the dog eats each day