Probability and Combinatorics Combined test

Hi everyone!

I was wondering if anyone can explain please why in order to define the number of cases combinations formula is used in the problem below and not the permutation one?

Thank you


Does it matter on which rolls we get a 5?