Two Carnot engines A and B operate in series such that engine A absorbs heat at $T_1$ and rejects heat to a sink at temperature $T$. engine $B$ absorbs half of the heat rejected by Engine $A$ and rejects heat to the sink at $T_3$. When workdone in both the cases is equal to value of $T$ is :