Let the heat released by first engine be QL.
Thus, heat absorbed by first engine QH=T1T2QL=800T2QL
So, work done by first engine W=QH−QL=(800T2−1)QL ......(1)
Heat absorbed by second engine is QL.
Heat released by second engine Q′L=T3T2QL=300T2QL
So, work done by second engine W′=QL−Q′L= (1−300T2)QL ...(2)
But, W=W′
⟹ 800T2−1= 1−300T2
Or 1100T2=2
⟹ T2=550 K