Write the contrapositive of the conditional statement. If a polygon is regular, then it has congruent angles and congruent sides.

A. If a polygon has congruent angles and congruent sides, then it is regular.

B. If a polygon does not have congruent angles and congruent sides, then it is not regular.

C. A polygon has congruent angles and congruent sides, if and only if, it is regular.

D. If a polygon is not regular, then it does not have congruent angles and congruent sides.