To control their weight , submarines have ballast tanks , which can hold varying amounts of water and air .
These submarines often have a system which can get air from the seawater .