A 0.150 block moving vertically upward collides with a light vertical spring and compresses it 4.50 before coming to rest. If the spring constant is 54.0 , what was the initial speed of the block? (Ignore energy losses to sound and other factors during the collision.)

You need to include the units of Mass, distance (compression) and spring constant. Just listing numbers is not enough.

Are they kg, meters and Newtons/meter?