Air flows into a heat engine at ambient conditions 14.7 lbf / in .^{2}, 540 R, as shown in Fig. P8.111. Energy is supplied as 540 Btu per lbm air from a 2700 R source and in some part of the process a heat transfer loss of 135 Btu per lbm air happens at 1350 R. The air leaves the engine at 14.7 lbf / in .^{2}, 1440 R. Find the first- and the second-law efficiencies.