If a regular polygon has exterior angles that measure 40 degrees each, how many sides does the polygon have?
A10
B9
C6
D8
A10
B9
C6
D8