Answer:
There were 12 donuts in the box.
Step-by-step explanation:
We are given the following information in the question:
Let x be the number of donuts in the box.
Then, according to the question
Number of donuts eaten by Amy = 
Number of donuts eaten by Anna = 
Number of donuts eaten by David = 1
Total number of donuts =
Number of donuts eaten by Amy + Number of donuts eaten by Anna + Number of donuts eaten by David

Solving the above equation:

Thus, there were 12 donuts in the box.