Let a fair die is thrown $10$ times. Let $X_i$ denotes the number of times the digit $i$ appears. What would be the probability $P(X_2=2|X_1=2)$ ?
By formula $P(X_2=2|X_1=2)=\frac{P(X_1=2~\cap~ X_2=2)}{P(X_1=2)}$.
$P(X_1=2)$ means the probability that the digit $1$ appears twice, which is $\binom{10}{2}\left(\frac{1}{6}\right)^2 \left(\frac{5}{6}\right)^8.$
But since the events $X_1=2$ and $X_2=2$ are independent, we have $P(X_1=2 \cap X_2=2)=P(X_1=2)P(X_2=2)$=$\binom{10}{2}\left(\frac{1}{6}\right)^2 \left(\frac{5}{6}\right)^8 \cdot \binom{10}{2}\left(\frac{1}{6}\right)^2 \left(\frac{5}{6}\right)^8.$
Thus, $P(X_2=2|X_1=2)=\frac{P(X_1=2~\cap~ X_2=2)}{P(X_1=2)}=\binom{10}{2}\left(\frac{1}{6}\right)^2 \left(\frac{5}{6}\right)^8$.
But the answer is given $\binom{8}{2}\left(\frac{1}{5}\right)^2 \left(\frac{4}{5}\right)^6$. How is this possible ?
You are told that you got two 1's in 10 rolls of the die, so in the remaining 8 rolls you have no 1's and two 2's. Assuming that 5 outcomes $\{2..6\}$ are equally likely (because the die is fair) leads directly to the answer given in your book $$P(X_2=2|X_1=2)=\binom{8}{2}\left(\frac{1}{5}\right)^2 \left(\frac{4}{5}\right)^6$$