Dividing a sum of money in a given ratio