What is the probability that a batsman get run from $15$ balls and no run from $25$ balls before being caught behind in the $40$th balls ? Assuming he has a half-half chance to get run from each ball .
This is a case of negative binomial distribution
So the distributional form is :
$\alpha$ is number of failures and $k$ is number of successes.