A heat pump is run by a reversible heat engine operating between reservoirs at 800°C and 50°C. The heat pump working on Carnot cycle picks up 15 kW heat from reservoir at 10°C and delivers it to a reservoir at 50°C. The reversible engine also runs a machine that needs 25 kW. Determine the heat received from highest temperature reservoir and heat rejected to reservoir at 50°C.