they float because they are less dense than the water itself
something denser than water, like a rock, will sink to the bottom
this would be a math