Let the molecular mass of the gas be M.So moles of gas be m/M.Let P1,T1,ni be the initial pressure , temperature ,moles of the gas respectively.And P1,T2,n2 be the final pressure, temperature and moles of the gas.P1=P ,T1=T,n1=m/MP1=P /2,T2=2T/3,n2=nApplying P1/T1×n1=P1/T2×n2.We get n2=3/4n1Let m1 be the mass of gas left.m1/M =3/4m/MWe get m1=3/4m.Therefore 1/4 of the initial amount of gas has escaped.