What does the lungs do in the respiratory system?

They get bigger, then smaller. Yup, pretty much. P.S the person who wrote this is stupid...

The lungs inflate then deflate XD