This is the exercise:
How many bit strings of length $77$ are there such that
a.) the bit string has at least forty-six $0$s and at least twenty-nine $1$s, and also the bit string corresponding to the first forty positions contains at most twenty-one $0$s and at most nineteen $1$s, and the bit string corresponding to the last twenty-six positions contains at least twenty-four $0$s.
b.) the bit string corresponding to the first nine positions contains exactly three $0$s and the bit string corresponding to the last twenty-six positions contains the string $1101\,1101$ as a substring.
I was able to solve part a. of the exercise by doing some case work and by taking in consideration all the constraints by doing it, removing the cases that wouldn't satisfy the constraints and that is what I've got for part a:
$$\begin{align*} & \binom{40}{21} \Bigg[\binom{26}{24} \left[\binom{11}1+\binom{11}2+\binom{11}3\right] \\ &\qquad\quad + \binom{26}{25} \left[\binom{11}0 + \binom{11}1 + \binom{11}2\right] \\ &\qquad\quad + \binom{26}{26} \left[\binom{11}0+\binom{11}1\right]\Bigg] \end{align*}$$
However I have no idea how to solve part b. Here's the consideration I made so far.
Since the bit string corresponding to the first nine positions contains exactly three $0$s ($\binom93$) and therefore exactly six $1$s. Since the substring contained in the last twenty-six positions is of length $8$, we have $18$ positions of the last twenty-six with no constraints. From position $10$ to position $77-26$, we have no constraints.
I appreciate whoever is going to help me, thanks!
Edit: I posted an answer to my question.