A rope is 24 feet long. It is cut into two pieces such that one piece is half the length of the other. Find the lengths of the two pieces of rope.