a)
KE=1/2mv^2
F= -kx
KE= -kx
-kx= 1/2mv^2
when u quadruple the m, the x also quadruples. when the speed is multiplied by 3, since it is v^2, the x is multiplied by 3^2 , which is 9
so distance the spring compressed is x×4×9= 36x
b) using the KE formular too,
when the v is tripled, since formula is v^2, the resulting KE will be multiplied by 3^2, so KE now= 9K