If you take 'x' as the number of chocolates you have, and you receive the same number of chocolates from your friend, then what will be the number of chocolates you have in total?
2x
You have 'x' chocolates.
Since you get the same number of chocolates from your friend.
So now, you will have twice the number of chocolates you had initially.
Hence, the total number of chocolates you have will be equal to 2×x=2x