Make the diagram in microsoft paint, and attach the pic. this should serve yr purpose..
For the question,
For max. compression, the stationary block shd not move at all.
So, KE of moving block = (1/2)kx2
1 = 50x2
x = 14 cm approx.
I hope i am correct.