Solve the given problem:
Q: A certain industrial process requires a steady 0.5 kg/s supply of compressed air at 500 kPa, at a maximum temperature of 30°C. This air is to be supplied by installing a compressor and after cooler. Local ambient conditions are 100 kPa, 20°C. Using an isentropic compressor efficiency of 80%, determine the power required to drive the compressor and the rate of heat rejection in the after cooler.