A 2 kg brick falls at 5.1 m/s from a height of 6 m above a spring that has a spring constant of 47 N/m. The brick strikes and compresses the spring until it stops moving. Ignore friction effects.

How much is the spring compressed by the brick?
Assume that there is no Eg after the brick comes into contact with the spring.