Corrosion inhibitors and scale inhibitors are substances that may be…