The original length of a spring is 15cm, the mass part of the object it hangs can exceed 18kg, and the spring stretches 0.5cm for every 1kg of weight. The functional relationship between the spring length y (CM) and the mass x (kg) of the object after hanging is written, the value range of the independent variable x is explained, and its image is drawn

The original length of a spring is 15cm, the mass part of the object it hangs can exceed 18kg, and the spring stretches 0.5cm for every 1kg of weight. The functional relationship between the spring length y (CM) and the mass x (kg) of the object after hanging is written, the value range of the independent variable x is explained, and its image is drawn

From the known data, it can be concluded that:
Spring coefficient: k = 0.5 cm / kg
So y = 15 + 0.5x
[0≤X≤18]