An atom of an element X gains two electrons. The symbol of the ion formed…