Since density of block `=(1)/(2)` (density of water) `50%` of its volume is immersed in water in the second case, half of the volume of the block is futher immersed in water `W=` Extra up thrust `+` spring force
`=axxaxx(a)/(2)xx2rhoxxg+k(a)/(2)=a(a^(2)rhog+(k)/(2))`