If a task can be done in either one of \(n_1\) ways or \(n_2\) ways, where none of the set of \(n_1\) ways is the same as any of the set of \(n_2\) ways. Then there are \(n_1 + n_2\) ways to do the task.
The Sum Rule can be generalized. If a task can be done in one of \(n_1\) ways, or in one of \(n_2\) ways, \dots, or in one of \(n_m\) ways, where none of the set of \(n_i\) ways is the same as any of the set of \(n_j\) ways, for all \(i \neq j\text{,}\) then there are \(n_1 + n_2 + \dots + n_m\) ways to complete the task.
There are 10 ways to select a goat and 15 ways to select a sheep, and none of the ways that select a goat is the same as any of the ways that select a sheep. By the Sum Rule, there are \(10 + 15 = 25\) ways to select the gift.
The procedure of selecting a gift can be broken down into two tasks: select the goat and select the sheep. The number of ways to select the sheep does not depend on which goat was selected. By the Product rule, there are \(10 \cdot 15 = 150\) ways to select a gift.