A cable 84 meters long is cut into two pieces so that one piece is 18 meters longer than the other. Find the length of each piece of cable.