What is the measure of angle x?

A right angle is shown divided into two parts. The measure of one part of the right angle is 30 degrees. The measure of the other part is 3x.

10
20
30
40