Fire Detection And Extinguishing Systems Of Equations