Answer:44 coins
Explanation:
Let x be total amount of coins king have
After giving half and 2 to First person king have

After Giving remaining half and two to merchant king have
![(\left [ (x)/(2)-2\right ])/(2)-2](https://img.qammunity.org/2020/formulas/mathematics/college/luvcbo09fwmpnye5tqmytw81a5vyxn6ukj.png)
After Giving remaining half and two to son he left with 2 coins
![(\left [ (\left [ (x)/(2)-2\right ])/(2)-2\right ])/(2)-2=2](https://img.qammunity.org/2020/formulas/mathematics/college/owy6um0sqjqrc8m9wf3b6gojw7g2z7nvrz.png)
Further solving
![(\left [ (x)/(2)-2\right ])/(2)-2=8](https://img.qammunity.org/2020/formulas/mathematics/college/ttggvs8vq4irpqlawan83yzpzvz121r7ov.png)


x=44 coins