If a regular polygon has an angle of rotational symmetry that is 40 degrees, how many sides does the polygon have?