Two Carnot engines A and B are operated in series. The first engine A, receives heat at 800 Kand rejects to a reservoir at temperature T. The second engine B receives the heat rejected by the first engine and in turn rejects to a heat reservoir at 300 K. Find the value of T, when the work outputs of the engines are equal.