In the diagram, the value of $x$ is
(A) 15
(B) 20
(C) 22
(D) 18
(E) 36

![](https://cdn.mathpix.com/cropped/2024_04_20_46ead6524a8d61e21c51g-053.jpg?height=315&width=307&top_left_y=512&top_left_x=1321)
The angles $2 x^{\circ}$ and $3 x^{\circ}$ shown are complementary and thus add to $90^{\circ}$.

Therefore, $2 x+3 x=90$ or $5 x=90$ and so $x=\frac{90}{5}=18$.

ANSWER: (D)