Find the number of sides when:
a. The measure of each interior angle of a regular polygon is 156 degrees.
b. The measure of each exterior angle of a polygon is 36 degrees.