See explanation below.
Work Step by Step
a, b, d, e, f, and h obey the octet rule since X is surrounded by a total of 8 electrons in each case. c breaks the octet rule because it is surrounded by 10 electrons. g breaks the ruie because it has only 6 electrons around it.