Here the density of the substances are to be compared.
The denser the substance is, the more is the tendency to sink/stay at the bottom.
Here, from the figure, we see that, milk is at the bottom. So the milk is the densest.
Next is the layer of soap water, over which is the oil. So, soap water is denser than oil.
The bead sinks through the oil but stays over the soap water. So, bead is denser than oil but not as dense as soap water.
Arranging the given items in order of decreasing density, we have
Milk > Soap water > Bead > Oil
Hence the answer is
The plastic bead is denser than oil, but milk and soap water are denser than the plastic bead.