Answer:44 coins
Step-by-step explanation:
Let x be total amount of coins king have
After giving half and 2 to First person king have
[tex]\frac{x}{2}-2[/tex]
After Giving remaining half and two to merchant king have
[tex]\frac{\left [ \frac{x}{2}-2\right ]}{2}-2[/tex]
After Giving remaining half and two to son he left with 2 coins
[tex]\frac{\left [ \frac{\left [ \frac{x}{2}-2\right ]}{2}-2\right ]}{2}-2=2[/tex]
Further solving
[tex]\frac{\left [ \frac{x}{2}-2\right ]}{2}-2=8[/tex]
[tex]\frac{x}{2}-2=20[/tex]
[tex]\frac{x}{2}=22[/tex]
x=44 coins