How to tag building that is used for apartments and offices?

If building is primarily used for apartments but base and lower floors are used for shops and offices hot it should be tagged?

You should use building=apartments. From wiki: “Some apartment blocks may also have retail outlets on the ground floor.”

I had doubt among apartments and residential.
So apartments is ok. Fine.