When talking about the price of more than one unit, the particle で is used after the word which expresses quantity/amount. The particle で expresses the specification or the limit here.
ボールペンは 三本で 九百円です。
Ball-point pens are three for ¥900.
ぜんぶで 四千円です。
It is ¥4,000 in all.