(a) Change in C–X bond enthalpy (bond broken minus bond formed):
351−234=117 kJ mol−1
The C–I bond formed is 117 kJ mol⁻¹ weaker than the C–Cl bond broken, so the C–X bonding alone opposes the reaction. The reaction is an equilibrium, and it is driven by the solvent: NaI is soluble in dry acetone, but NaCl is not and precipitates as it forms. Removing a product continuously shifts the equilibrium forward (Le Chatelier's principle), so the reaction goes almost to completion.
(b) Here a C–Br bond is replaced by a C–F bond:
452−293=159 kJ mol−1
The C–F bond formed is 159 kJ mol⁻¹ stronger, so the bond change strongly favours the Swarts reaction (and AgBr also precipitates).
The same number explains the low reactivity of CH3F. In a nucleophilic substitution the C–X bond must break, and C–F is the strongest and shortest (139 pm) of the four, so fluoride is the poorest leaving group. The order of reactivity follows bond enthalpy:
R–I>R–Br>R–Cl>R–F
This is true even though the C–F bond is the most polar, which shows that bond strength, not bond polarity, decides how easily the halide leaves.