Mrs.Duncan measured the lengths of a crayon and a pencil. The pencil is twice as long as the crayon. The sum of their lengths is 24 cm. What are their lengths ?