Determining the density of solids with the scales and the ruler