Concept:
The total heat transfer rate in the heat exchanger is given by
Q = U.A.θm
Where, U = overall heat transfer coefficient in W/m2-K,
A = effective surface area of heat exchanger in m2,
θm = log mean temperature difference (LMTD)=ln(ΔT2ΔT1)ΔT1−ΔT2
Also, Q = Cph (Thi-Th0) = Cpc (Tco-Tci)
i.e. heat lost by hot fluid = heat gain by cold fluid
where, Cph and Cpc are heat capacity of hot and cold fluid respectively in kJ/K
Since the heat capacity for hot and cold fluids are same and it is a case of counter flow so the LMTD will be the difference of temperature of either side.

Calculation:
Given, A = 20 m2, U = 20 W/m2-K, Tci = 280 K, Th0 = 300 K
Cph = Cpc = 0.4× 1000 = 400 J/K.
For same heat capacity of hot and cold fluid LMTD = ΔT1 = ΔT2 = Tho-Tci = 300 – 280 = 20 K.
From, Q = U.A.θm = Cph (Thi-Th0) = Cpc (Tco-Tci)
20× 20× 20 = 400× (Tco - 280)
Tco = 300 K

Alternate Method
Effectiveness NTU Method:
For balanced counter flow heat exchanger, the effectiveness is given by-
ϵ=Thi;−;TciThi;−;Tho=Thi;−;TciTco;−;Tci

Tci = 280 K, Tho = 300 K
NTU=CminUA
NTU=0.4×100020×20=1
Since the heat exchanger is balanced,
ϵ=1;+;NTUNTU
ϵ=1;+;11=0.5
ϵ=Thi;−;TciThi;−;Tho
0.5=Thi;−;280Thi;−;300
Thi - 280 = 2Thi - 600
Thi = 320 K
For a balanced heat exchanger, the difference between the inlet and outlet always remains constant.
ΔT2 = ΔT1 = Thi - Tco = Tho - Tci
Tho - Tci = 20
Thi - Tco = 320 - Tco
320 - Tco = 20
Tco = 300 K.