What is the salinity of the water?

If you're on the Dead Sea or the Great Salt Lake, it will take considerably less foam to float the boat than if you're on Lake Superior.

Assuming that you're on the Atlantic ocean, where the water's density is about 64 lbs. per cubic foot and you're using foam that weighs 4 lbs. per cubic foot, you need 18,000/60 or 300 cubic feet of foam.
BTW, Jim, you're way off on your density of salt water... I hope you don't rely on the 67 lbs. / cubic foot number for any serious buoyancy calculations, cause it is just wrong.
TSMWebb—
As for the idea that buoyancy can exist without gravity, that's also wrong. By
definition, buoyancy requires WEIGHT, which is something that only occurs within a gravitational field. Mass is unchanging, but weight depends on the gravitational field the mass is acted upon by.
In physics, buoyancy is the upward
force on an object produced by the surrounding liquid or gas in which it is fully or partially immersed, due to the
pressure difference of the fluid between the top and bottom of the object.
The net upward buoyancy force is equal to the magnitude of the weight of fluid displaced by the body. This force enables the object to float or at least seem lighter.
Without weight, which by definition requires gravity, to force the object down into the seawater, buoyancy can not exist. And yes, an object can only float if it can displace a volume greater than its actual weight in water. In the case of an 18,000 lb. boat, it would require displacing a volume of 281.25 cubic feet, so the boat itself would have to take up a volume greater than 281.25 cubic feet to float, using 64 lbs. per cubic foot as the density of the seawater. If it displaced 281.25 cubic feet, it would not float, but be neutrally buoyant.
While things can "float" in zero gravity, there would be no buoyancy, since the boat has the same weight, and density as the water in zero gravity, assuming that the zero gravity is not in vacuum, or the water would boil away and disperse in gaseous form. Don't confuse "floating" with buoyancy.
Floating has no condition requiring displacing an object's own mass in the liquid, buoyancy does.
One final point. Most boats would do horribly when sailing on an ocean of mercury, due to the extremely high density of mercury—847.14 lbs./cubic foot.
In fact, most boats would have no form stability due to not sinking deeply enough on their lines into the mercury to have the form stability to remain upright. My boat would, but my boat depends entirely on form stability for its upright position, and most monohulls would be lying on their sides, as lead, concrete and cast iron are all too light to provide a righting moment as ballast on a sea of mercury.

The only keel material that would suffice on an ocean of mercury is Osmium—with a density of 1411.49 lbs./cubic foot, most forms of which, IIRC, are either highly toxic or radioactive.
Speaking of floating...how much foam does it take inside a cabin to keep an 18,000 lb boat from sinking if it's taking on water and the leak can't be stopped?