Explain why, a piece of glass sinks in water but it floats in mercury.
Because mercury is denser than the iron nail, while water is less dense than the nail. Density is how much a something weighs per volume. Oil is less dense than both water and mercury, so it floats on both water and mercury.