Develop equations which may be solved to give the final temperature of the gas remaining in a tank after the tank has been bled from an initial pressure PI to a final pressure P2. Known quantities are initial temperature, tank volume, heat capacity of the gas, total heat capacity of the containing tank, P1, and P2. Assume the tank to be always at the temperature of the gas remaining in the tank, and the tank to be perfectly insulated.