Dividing Line Segments in the Ratio