I have bought double the number of candies that I bought yesterday. I have given $$3$$ to my friend and I have just one left. How many candies did I buy yesterday?
Development:
We raise an equation that corresponds to the statement of the problem.
If $$x$$ is the number of candies that I bought yesterday, then, $$2\cdot x$$ is the number of candies that I have bought today.
If I give $$3$$ candies to my friend I have to subtract $$3$$ from the quantity of candies that I have today: $$$2x-3$$$
Since I am left with just with $$1$$ candy, the statement is translated into the following equation: $$$2x-3=1$$$
We solve this equation: $$$2x=1+3 \Rightarrow 2x=4 \Rightarrow x=2 $$$
Solution:
Yesterday I bought $$2$$ caramels.