Air flows into a heat engine at ambient conditions 100 kPa, 300 K, Energy is supplied as 1200 kJ per kg air from a 1500 K source and in some part of the process a heat transfer loss of 300 kJ/kg airs happens at 750 K. The air leaves the engine at 100 kPa, 800 K. Find the first and the second law efficiencies.