By breathing into a bag and the inhaling the contents of the bag you will restore the level of carbon dioxide in the blood.  

Hyperventilation is caused by the blood having too much or too little carbon dioxide.