A thermal storage device is made with a rock (granite) bed of 2 m^3 that is heated to 400 K using solar energy. A heat engine receives QH from the bed and rejects heat to the ambient surroundings at 290 K. The rock bed therefore cools down, and as it reaches 290 K the process stops. Find the energy the rock bed can give out. What is the heat engine's efficiency at the beginning of the process, and what is it at the end of the process?