A pebble that sinks in water has greater density than a twig floats on top of the water. A pebble has more mass in it and more compact compared to a twig. The water cannot easily penetrate the pores of the pebble unlike twigs. That is why pebbles have greater densities than twigs.