this is a binomial distribution problem.

Suppose we have n independent trials, the outcome of which can be considered a success or failure, and we are looking for k successes each with a probability of p. we call the probability of failure q, where q = 1 - p, of course.

the probability of k successes is given by:

by the way, usually problems with dice are a bit more complicated than problems with coins