States of matter

A gas warms from 20 °C to 40 °C at constant pressure and fixed amount. A student claims its volume doubles because 40 is twice 20. What is the key flaw?