This riddle sounds like a subtraction problem, but the key is understanding the phrase “all but 9.”
It means every sheep except nine dies. Therefore, nine sheep remain alive.
The wording is designed to make readers subtract 9 from 17 and answer 8, but that is not what the sentence says.
Answer: 9 sheep are left.


