A 540 g block is released from rest at height h0 above a vertical spring with spring constant k = 320 N/m and negligible mass. The block sticks to the spring and momentarily stops after compressing the spring 19.8 cm. How much work is done (a) by the block on the spring and (b) by the spring on the block? (c) What is the value of h0? (d) If the block were released from height 3h0 above the spring, what would be the maximum compression of the spring?

I just need help with d). I got for a) is 6.27 J, b) is -6.27, and c) is 0.987. All of these are correct, but I am having trouble with d).