valency vs. valence?

Valency electrons - electrons that take part in bonding.
Valence electrons -  electrons in the outermost(valence) shell.


Question
Determine the valency of chlorine in magnesium chloride.
The answer is 1 since the number of electron that take part in bonding process is 1. However, the number of valence electrons is 7 since chlorine is found in Group VII in the periodic table.