C is the mid-point of AB and D is the mid-point of XY. Using an Euclid’s axiom