Maths Question Needed to be solved

Job ID: 37187078

Budget: $2 – $8 USD

Hey guys,

I need a Maths questions solved and explained to be thoroughly

One day a king left his castle with a bag of silver coins to wander his kingdom. To the first peasant he met, he gave one-half his coins plus two more. A little later, he met another peasant to whom he gave half his coins plus two more. Walking on, he met a third peasant and again gave half his coins plus two more. Finally, the king went home with two coins left in his bag. How many coins did he have to begin with?

DO NOT GOOGLE IT as I already know the answer from google and I think it might be wrong