You can put this solution on YOUR website! Let us assume that C gets Rs.x
Then B gets Rs.x+10
A gets Rs.x+10+29=Rs.x+39
Now,according to the given conditions
x+x+10+x+39=340
=>3x+49=340
=>x=340-49 / 3
=291/3
=97
Therefore,C gets Rs.x =Rs.97
B gets Rs.x+10=Rs.107
A gets Rs.x+39=Rs.136