Xavier is twice as old as Yasmin is. Xavier will 30 years old in six years. What is the total of their ages now?
If in six years Xavier will be 30 years old, he is 30-6 = 
<gadget id="calculator">30-6</gadget>
<output>24</output>
24 years old now.
If Xavier is twice as old as Yasmin, Yasmin is 24/2 = 
<gadget id="calculator">24/2</gadget>
<output>12</output>
12 years old.
The total of their ages now is 12+24 = 
<gadget id="calculator">12+24</gadget>
<output>36</output>
36 years.

<result>36</result>