Moles of an ideal gas are : 0.288
In general, the gas equation can be written
[tex]\large{\boxed{\bold{PV=nRT}}}[/tex]
where
P = pressure, atm
V = volume, liter
n = number of moles
R = gas constant = 0.082 l.atm / mol K
T = temperature, Kelvin
Volume=V=3 L
T = 45°C+273=318 K
P = 2.5 atm
[tex]\tt n=\dfrac{PV}{RT}\\\\n=\dfrac{2.5\times 3}{0.082\times 318}\\\\n=0.288[/tex]