In a Carnot cycle, the isothermal expansion of an ideal gas takes place at 400K and the isothermal compression at 300K. During the expansion 500 J of heat energy are transferred to the gas. Determine
a) the work performed by the gas during the cycle,
b) the heat transferred to the cooler,
c) efficiency of the cycle.