Density of liquid =6g/cc=6000kg/m3
Applying the law of floatation, when it is placed only in liquid.
Vρcg=(23V)ρlg..........(I)
Let say x fraction of volume is inside the liquid, so (1−x) fraction of volume will be inside water.
Now applying the law of floatation, when it is placed in water and the liquid.
Vρcg=xVρlg+(1−x)Vρwg..........(II)
Equating (I) and (II)
(23V)ρlg=xVρlg+(1−x)Vρwg⇒(23)ρl=xρl+(1−x)ρw⇒(23)×6000=x×6000+(1−x)×1000∵ρw=1000kg/m3⇒4000=6000x+1000−1000x⇒5000x=3000⇒x=35