An element has an electronic configuration of 2, 8, 8. So based on this information, the element X is a
Noble gas
Since the last shell contains 8 electrons the element has to be a noble gas. These elements are inert in nature because of completely filled outer shell configuration.