If the length of a 23cm spring increases to 40cm when a 7kg weight is hanging from it, what is the spring's constant?