Yes sirrr but at least you know now
Well first of all, a planet doesn't have a semimajor axis, although it's orbit does.
In an orbit with a smaller semimajor axis, the planet moves faster, and its orbital period is shorter.
That's why the International Space Station circles the Earth in less time than the Moon does.
We know, by conservation of energy :

Therefore,

Putting given values, we get :

Therefore, the spring be compressed to 6.93 cm to send the ball twice as high.
Hence, this is the required solution.