A metallic ion Z\(^{2+}\) with an inert gas structure contains 18 electrons. How many protons…