Mrs Duncan measured the length of a crayon and a pencil the pencil is double the length of the crayon. The sum of their lengths is 24 centimeters. What are their lengths?