A 2.0kg block is pressed against a horizontal spring and then released from rest. After leaving the spring, it slides without friction up a ramp and momentarily comes to rest 1.5m above its starting height. If the spring constant is 5.0×102N⋅m−1, approximately how much was the spring compressed before release?
a) 0.34m
b) 0.24m
c) 0.49m
d) 0.12m