Two Carnot engines work one after the other. Engine 1 takes heat from a source at 900K and gives out heat at an intermediate temperature T. Engine 2 takes in all of that heat at T and gives out heat to a sink at 400K. What must T be if the two engines do equal amounts of work, and what must it be if they have equal efficiencies?