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