Proportional division of sides in a triangle