A regular polygon is shown, with the measure of one of its angles labeled 3x − 15.

8 sided regular polygon with one angle labeled 3 times x minus 15

Determine the value of x.

x = 40
x = 65
x = 50
x = 135