How to calculate the density of alloy? What is the idea?

How to calculate the density of alloy? What is the idea?

First, the mass is measured by balance, then the volume is measured by drainage method, and finally the equation P = m / V is used to solve the problem