Emma drew a polygon with interior angles that added up to 540°. Each interior angle of her polygon measured 108°. What figure did she draw?
A. pentagon
B. hexagon
C. heptagon
D. octagon