Line segment AB has 1 length of 24 units. point C is the midpoint of AB. point D is the midpoint of AC. what is the length of CD?

A6 units
B12 units
C24 units
D48 units