in american football it is possible for a player on both squads to perform an equally egregious penalty, resulting in the officiating crew certifying the results of the play despite the presence of infractions. the other option, depending on the particular broken rules, is to replay the down
it has to have a yardage offset of like kind for the play to count, and i think both infractions must be of the 5 yard variety, so basically a defender needs to be offsides and an offensive lineman needs to hold (probably the offside defender). anything else the penalties offset and you replay the down