A reversible cyclic device does work while exchanging heat with three constant temperature reservoirs. The three reservoirs (1,2
, and 3) are at temperatures of 1000K, 300K, and 500K. Four hundred kilojoules of heat are transferred from reservoir 1 to the device, and the total work done is 100 kJ. Find the magnitude and direction of the heat transfer from the other two reservoirs.