In the diagram, what is the value of $x?$ [asy]
size(150);
draw((0,5)--(0,0)--(5,0));
draw((0,0)--(3,5));
draw((0,.3)--(.3,.3)--(.3,0));
label("$2x^\circ$",(.5,2));
label("$3x^\circ$",(1,.6));
[/asy]
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
In the diagram, what is the value of $x?$ [asy]
size(150);
draw((0,5)--(0,0)--(5,0));
draw((0,0)--(3,5));
draw((0,.3)--(.3,.3)--(.3,0));
label("$2x^\circ$",(.5,2));
label("$3x^\circ$",(1,.6));
[/asy]
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
18
In the diagram, what is the value of $x?$ [asy]
size(150);
draw((0,5)--(0,0)--(5,0));
draw((0,0)--(3,5));
draw((0,.3)--(.3,.3)--(.3,0));
label("$2x^\circ$",(.5,2));
label("$3x^\circ$",(1,.6));
[/asy]
train