Two non-mixing liquids of densites ρ and nρ(n>1) are put in a container. The height of each liquid is h. A solid cylinder of length L and density d is put in this container. The cylinder floats with its axis vertical and length pL(p<1) in the denser liquid. The density d is equal to [The cylinder is completely submerged in the liquid]
Where a body is floating in mixture of liquids, then we can write weight of the cylinder = up thrust on culinder due to denser liquid + up thrust on cylinder due to lighter liquid.
Vdg = V1d1g + V2d2g
Vd = V1d1 + V2d2 = V1(nρ) + V2ρ