Join Void and Mass

I want to create an element in the form of a combination of a void object and a mass object and also calculate the quantity
how can i do?