The source book printed C; on checking, B is correct — see the explanation.
Printed C; the roles are the other way round.
Explanation
In (A) water solvates Cl⁻ through its H atoms — accepting electron density, a Lewis acid. In (B) water donates its O lone pair to Mg²⁺ — a Lewis base. Acid in (A), base in (B).