A 0.40kg block slides down a frictionless ramp starting from rest at a vertical height of 0.75m above a horizontal spring with force constant 120Nm−1. The block compresses the spring and momentarily comes to rest. Determine the maximum compression of the spring.