A rope is 84 meters long is cut int two pieces so that one piece is 18 meters longer than the other. What is the length of each piece of rope?