The overall is cyclic one, i.e., initial state is regained, thus
ΔU = 0; ΔH = 0 and ΔS = 0.

Now, total work W = WA→ B + WB→ C + WC→ A
WAB = – P (VB – VA )
= – 1 (40 – 20) = – 20L atm
= – 20 × 1.01325 × 102 J
= – 2026.5 J
WBC = O (Isochoric)
WCA = – 2.303 nRT log10 VA/VC
n = 2 mol.
At point C : P = 0.5 atm, V = 40L
PV = nRT
T = (0.5 x 40)/(0.0821) (2) = 121.8 K
WCA = – 2.303 (2) (8.314) (121.8) log10 (20/40)
= 1404.07 J
Total work, W = – 2026.5 + 0 + 1404.07
= – 622.43 J
For cyclic process : ΔU = 0
⇒ q = – w
q = + 622.43 J