1.20kg mass is dropped from a height of 0.9M unto a spring with force constant K= 120N/m and negligible mass. Find the maximum distance the spring will compressed

pls show full working and indicate formular.

PE -> PE(spring)

mgh =kx²/2
x=sqrt(2mgh/k)