To understand this, you must learn about Charles law which tells the relationship between volume and temperature. in this case pressure is constant and volume is directly proportional to temperature. so result is V/T=constant! that means, V1/T1=V2/T2