
-total number of pumpkins
First witch took

pumpkins.
The number of pumpkins remained

Second witch took

The number of pumpkins remained

Third witch took

Ghost took 3 pumpkins. The number of pumpkins remained is 3,6 or 9.
Solve equation for each case.
1)

2)

3)
Only equation 2) has a solution which is a whole number: 25
The total number of pumpkins is 25.