Solution (source code)

= Solution

For <sampling with replacement>, the box has its original contents at the second draw. Therefore
$$
\boxed{P(B_2)=\frac25\qquad(r=1).}
$$