An object with uniform density ρ is attached to a spring that is known to stretch linearly with applied force as shown below.
When the spring-object system is immersed in a liquid of density ρ1 as shown in the figure, the spring stretches by an amount x1(ρ>ρ1). When the experiment is repeated in a liquid of density ρ2<ρ1. the spring stretches by an amount x2. Neglecting any buoyant force on the spring, the density of the object is