Initial kinetic energy of the system of two blocks is,
KEi = ½ (5)(22) + ½ (5)(22) = 20 J
After the collision the Ek of the system is, KEf = 0
Change in KE in magnitude is, |ΔKE| = |KEf - KEi| = 20 J
From work energy principle, |W| = |ΔKE| = 20 J
Thus, the net work done by the forces is 20 J.