Answer:
Explanation:
Let us assume the king before leaving his castle had x silver coins.
For the first peasant he met he gave

Now he is left with

Next peasant he gave half of what he had and two more
Hence next peasant got

Balance left =

Third peasant got half + 2 more
Hence third peasant got

Balance he had
