Balance the rule with one mass in air, then lower that mass into water and balance it again. It has to move further out, because the water is holding some of its weight. Plot the dry distance against the extra distance, and the relative density is one more than the gradient.