Two non-mixing liquids of densities and are put in a container. The height of each liquid is . A solid cylinder of length and density is put in this container. The cylinder floats with its axis vertical and length in the denser liquid. The density is equal to [2016]
(2)

A = area of cross-section of cylinder
Using law of floatation,