If the order of choice is relevant, use permutation. We have to choose 5 objects in a total of 9:
Obs: Initially we have 9 objects, you choose one, then we have 8, you choose another, then you have 7..... (this is the reasoning)
If the order of choice is not relevant, use a combination. This can be done by the equation above:
Obs: It is a combination of 9 elements chosen 5 by 5.