A gas occupies a volume of 3 liters at a pressure of 2 atmospheres. If the pressure changes linearly with respect to the volume and reaches 1 atmosphere when the volume is 6 liters, what is the volume of the gas when the pressure is 1.5 atmospheres? Let's think step by step and output the final answer within \boxed{}.
user