Which formula can be used to find the sum of the measures of all the interior angles of a regular polygon with n sides?

A. S = (n + 2)90
B .S = (n + 2)180
C. S = (n - 2)180
D. S = (n - 2)90