So we start out with a total t. The first son gets $100 and 10% of what's left. So that would be: son[0] = 100 + .1(t-100), with t = t - son[0].

The second son now gets $200 and 10% of the remaining total. Set that up as: son[1] = 200 + .1(t-200). Again, we subtract t = t - son[1], to get the remaining total.

I'll let you set up son[2]. After that, you set the equations for the three sons equal to each other, and solve. I set up the equations a little more programatically, adjusting a single variable. So remember when you set up subsequent equations after son[0] to adjust for the change in the total.