One exterior angle of a regular polygon measures 40. What is the sum of the polygon's interior angle measures? Please show working.