Solve for x in the diagram the angles are complementary

Given:
The two angles x - 6 degree and 2x + 18 degree.
Required:
Solve for x.
Explanation:
When the sum of two angles is equal to 90 degree, they are called complementary angles.
Now,
[tex]\begin{gathered} x-6+2x+18=90 \\ 3x+12=90 \\ 3x=78 \\ x=26 \end{gathered}[/tex]Answer:
The value of x equals 26.