Well, we need more info to answer that. Like what size tank, other tankmates, filter system, ect... From the tank sizes you have listed, no triggers, they need at least 75 gallons. The puffer could work in the 40, but it depends on what other fish you have in there.
-Mark