Ideal gas problem explanation