Division of a sum in a given ratio