A fire extinguisher sprays foam or gas to cut off the supply of AFuel BAir CWater DHeat.
B
Air contains oxygen, which helps in burning. To extinguish a fire it is necessary to cut off the supply of oxygen (air).