James turned 23 the same time John turned 35.  Tim is 5 years less than twice John's age.  If Tim is 79 how old is James?
James is 35-23=
<gadget id="calculator">35-23</gadget>
<output>12</output>
12 years younger than John
5 years less than Tim's age is 79-5=74 years old.
So John is 74/2=
<gadget id="calculator">74/2</gadget>
<output>37</output>
37 years old.
That means James is 37-12=
<gadget id="calculator">37-12</gadget>
<output>25</output>
25 years old.

<result>25</result>