Roman numerals are typically used in the names of certain transition metal elements that can have more than one oxidation state. Therefore, the correct response from your options would be:
Groups 7 and 8
These groups include transition metals, which commonly require Roman numerals to indicate their oxidation states when they form compounds, such as iron (II) or iron (III).
Groups 1 and 2 do not require Roman numerals because their oxidation states are generally consistent (Group 1 elements typically have a +1 oxidation state, and Group 2 elements typically have a +2 oxidation state). Group 18 elements (noble gases) are mostly unreactive and do not form ions, and groups 16 and 17 do not require them either, as nonmetals typically have predictable oxidation states.