A dragon hoards jewels and gold in its cave. A jealous king snuck in and stole three prize jewels. The dragon burned him to a crisp and stole back its jewels, along with twice as many of the king’s crown jewels from his crown that melted in the dragon’s fire. The new jewels were a third of the number of jewels the dragon had owned before. How many jewels did the dragon own in the end?
The dragon stole 2 * 3 = 
<gadget id="calculator">2*3</gadget>
<output>6</output>
6 of the king's crown jewels.
The dragon owned 6 * 3 = 
<gadget id="calculator">6*3</gadget>
<output>18</output>
18 jewels before the theft.
Thus, the dragon owned 18 + 6 = 
<gadget id="calculator">18+6</gadget>
<output>24</output>
24 jewels in the end.

<result>24</result>