Suppose the bottle contains x units of medicine and y units is taken out and replaced with water. The expression to find the the amount of pure medicine solution after replacement by n times is given by
[tex]\begin{gathered} \text{The amount of pure medicine remaining, v=} \\ x(1-\frac{y}{x})^n \\ \end{gathered}[/tex]In the given question, v =30mg, x=40 mg.
n=1, since replacement is done only one time. We have to find y.
Substitute values in equation.
[tex]\begin{gathered} 30=40(1-\frac{y}{40})^1 \\ \frac{30}{40}=\frac{40-y}{40} \\ 30=40-y \\ y=40-30 \\ =10mg \\ \end{gathered}[/tex]So, 10 mg/2.5 ml solution is poured out and replaced with water