Two years ago, Jared was twice as old as Tom. If Tom will be 30 in five years, how old is Jared now?
Tom will be 30 in 5 years so now he is 30-5 = 
<gadget id="calculator">30-5</gadget>
<output>25</output>
25
2 years ago Tom was 25-2 = 
<gadget id="calculator">25-2</gadget>
<output>23</output>
23.
At that time, Jared was twice as old as Tom so Jared was 23*2 = 46.
Two years have since passed so Jared is now 46+2 = 
<gadget id="calculator">46+2</gadget>
<output>48</output>
48.

<result>48</result>