Solve the below problem:
Q: A 500-L insulated tank contains air at 40°C, 2 MPa. A valve on the tank is opened, and air escapes until half the original mass is gone, at which point the valve is closed. What is the pressure inside then? You must solve the given problem step by step.You must include all the steps which are needed to complete the given problem.