If the sum of the interior angles of a polygon is 540, then how many sides does the polygon have?
A. 5
B. 6
C. 7
D. 8