How Can I Find The Deflection Of A Spring That Is Striked By A Block Which Slide

How can I find the deflection of a spring that is striked by a block which slides on a smooth incline at an angle of 30 degrees, and given a vertical force in Newtons which is applied on the block throughout its motion, a mass in Kg, the block’s velocity when it strikes the spring, and given a spring constant (k) N/m