The distance d between a fixed spring and the floor is a linear function of the weight w attached to the bottom of the spring. The bottom of the spring is 18 inches from the floor when the weight is 3 pounds and 10 inches from the floor when the is 5 pounds.