Nick had twice as many candies as George. Then George ate 5 candies. Now George has 3 candies left. How many candies does Nick have?
George has 3 candies now but he already ate 5. So he had 5 + 3 = 
<gadget id="calculator">5+3</gadget>
<output>8</output>
8 candies at the start.
Nick had twice as many candies as George, so he had 2 * 8 = 
<gadget id="calculator">2*8</gadget>
<output>16</output>
16 candies originally.

<result>16</result>