Answer:
The minimum compression is 
Explanation:
From the question we are told that
The mass of the block is 
The spring constant is 
The coefficient of static friction is 
For the the block not slip it mean the sum of forces acting on the horizontal axis is equal to the forces acting on the vertical axis
Now the force acting on the vertical axis is the force due to gravity which is mathematically given as

And the force acting on the horizontal axis is force due to the spring which is mathematically represented as

where x is the minimum compression to keep the block from slipping
Now equating this two formulas and making x the subject

substituting values we have

