Suppose king has 100% of rubies and he decided to give 20% away so he's left with 80%. After that he decided to give 25% of 80% so he's left with 60% of the total rubies. Moreover he distributed 30% of the 60% he had finally he has only 42% of the original left with him that totalled to 21
42x/100=21
x=50
King had total 50 rubies
First daughter share= 50*20%= 10
Second daughter share= 40*25%= 10
Third daughter share= 30*30% = 9