A stretched spring has a length of 12 inches when a weight of 2 lbs is attached to the spring. The same spring has a length of 18 inches when a weight of 5 lbs is attached to the spring. What is the length of the spring when no weights are attached?