Initially there are $8$ grams of a radioactive material in a container.The half-life of the material is $2$ days.
How much of the radioactive substance will remain after $5$ days ?
By exponential decay I know that after $2$ days I have $4$ grams of the radiactive material and that $2$ days later I will have $\cfrac{2}{2}=1$ gram of the substance.
Now I don't know how to find how much radioactive I have after $5$ days ,i.e. in the "beginning",roughly speaking, of the $6^{th}$ day.
My book provides as a solution the following equation $\cfrac{2-x}{2}=\cfrac{x-1}{x}$ ($x$ is the amount of material after $5$ days) from which it follows that $x=\sqrt{2}$ but I don't know how this equation have been set up,what is meaning behind this.
If someone can help me understand how that equation is derived I am really grateful.