In order to determine the elongation of the spring, proceed as follow:
Consider that the weight plus the elastic force on the block is equal to the buoyant force of the water:
W + F = E
where:
W: weight of the block = m*g = (5.71kg)(9.8m/s^2) = 55.96N
F: elastic force = kΔL
k: spring constant = 180N/m
E: buoyant force = m*g*ρw/ρb
Then, the net force on the block can be written as follow:
[tex]\begin{gathered} F=mg(\frac{\rho_w}{\rho_b})-W \\ F=(5.71kg)(9.8\frac{m}{s^2})(\frac{1000\frac{kg}{m^3}}{644\frac{kg}{m^3}})-55.96N \\ F=86.89N-55.96N \\ F=30.93N \end{gathered}[/tex]
Next, use the previous value into the formula for the elastic force (Hooke's law) and solve for ΔL:
[tex]\Delta L=\frac{F}{k}=\frac{30.93N}{180\frac{N}{m}}\approx0.172N[/tex]