Give answer to the following:
 
An atom 'X' loses three electron from its M shell to attain stability. Write the electronic configuration of the atom and the ion formed and also give its valency.
 
i. Electronic configuration of atom 'X' is .
ii. Electronic configuration of the ion (after losing or gaining electrons) is .
iii. Valency of atom 'X' is .