please help me with segment addition and midpoints

Please Help Me With Segment Addition And Midpoints class=