If you have a 40 gallon tank, then get a 20 gallon container Fill up the container with water. Then add in a heater and powerhead.
After that, take a measuring cup to figure out how much salt is needed to match your 40gal's tank SG. Trial and error is needed for matching. Let the powerhead run overnight with the salt and heater.