Solution
= Solution
Let $D$ denote the selected die. <Bayes' theorem> gives
$$
\boxed{\mathbb P(D=1\mid X=1)
=\frac{\mathbb P(X=1\mid D=1)\mathbb P(D=1)}
{\mathbb P(X=1)}
=\frac{(1/2)(1/6)}{1/6}=\frac12.}
$$
Only the first roll is conditioned on here; the second outcome has not been observed.