If the density of an object is more than the density of a liquid, then it sinks in the liquid. On the other hand, if the density of an object is less than the density of a liquid, then it floats on the surface of the liquid.
Here, density of the substance = {Mass\ of\ the \ substance \over volume\ of\ the\ substance} = {50\over 20} = 2.5 𝑔/𝑐𝑚3
The density of the substance is more than the density of water (1 g cm−3 ).
Hence, the substance will sink in water.