How to calculate the density of alloy in Physics

How to calculate the density of alloy in Physics

Alloy density = total mass / total volume
=(m1+m2+...)/(v1+v2+...)