The contrapositive switches the hypothesis and the conclusion and negates both in this form:
Statement: If A, then B
Contrapositive: If not B, then not A.Â
In this case, the statement is:Â
 "If the lights are off, there is no one inside."
Contrapositive:
If there is someone inside, the lights are on.Â