Solve the following problem:
Q: A cylinder with a piston restrained by a linear spring contains 4 lbm of carbon dioxide at 70 lbf/in.2, 750 F. It is cooled to 75 F, at which point the pressure is 45 lbf/in.2. Calculate the heat transfer for the process. You should solve the given problem step by step and also you need to include all the units which are needed to accomplish the given problem.Your calculation should be clear and understandable.