The correct option is B Z - 10
The outermost shell of inert gas will be completely filled(duplet/ octet). The electronic configurations of given elements are,
Z- 8: 2, 6
Z - 10: 2, 8
Z - 12: 2, 8, 2
Z - 9: 2, 7
In the case of the element with atomic number(Z) 10, the second shell is the outermost shell and it is completely filled. Thus, it is an inert gas. Other elements do not have 8 electrons in their outermost shells so they are not inert gases.