Lava, it turns out, can inspire innovation.

Students at the Hawaii Academy of Arts and Science have invented an air scrubber that clears the air of vog, pollution created by lava flowing into their community. Vog occurs when sulfur dioxide reacts with oxygen, moisture and sunlight. It can lead to headaches, sore throats and breathing difficulties.

Seventeen-year-old student Logan Treaster helped develop the air scrubber when vog affected a classmate who had to move away. “It feels good to be able to help our community,” Treaster told the Associated Press.

Students made the air scrubber from off-the-shelf material. A fan draws the air in, and then the vog is neutralized by a powder similar to baking soda.

Students sell the air scrubbers at local hardware stores for $150. They donate $50 from each sale to the school’s STEM (science, technology, engineering and math) education program.

“We teach giving back,” said Eric Clause, the academy’s STEM education coordinator. “I also teach the kids, ‘You can work the problem — or you can let the problem work you.'”

Every day, students react to challenges in innovative ways. Science fairs in America and around the world frquently showcase their efforts.