Solve the following question:
 
An atom 'X' loses three electron from its M shell to attain stability. Write the electronic configuration of the atom and the ion formed. Also, state the type of ion formed, its valency, and say whether the element is a metal or a non-metal.
 
i. Electronic configuration of atom 'X' is
ii. Electronic configuration of ion is
iii. Type of ion formed is
iv. Valency of atom 'X' is
v. Nature of the element is