Jon runs a triathlon.  It takes him 40 minutes for the swim, an hour and 20 minutes for the bike ride and 50 minutes for the run.  Compared to Jon, James finishes the swim 10% faster but takes 5 minutes longer on the bike.  If Jon won by 10 minutes, how long did it take James to do the run?
Jon did the bike ride in 60+20=
<gadget id="calculator">60+20</gadget>
<output>80</output>
80 minutes.
So his total time was 40+80+50=
<gadget id="calculator">40+80+50</gadget>
<output>170</output>
170 minutes.
James finished the swim 40*.1=
<gadget id="calculator">40*.1</gadget>
<output>4</output>
4 minutes faster.
So he finished the swim in 40-4=
<gadget id="calculator">40-4</gadget>
<output>36</output>
36 minutes.
He finished the bike ride in 80+5=
<gadget id="calculator">80+5</gadget>
<output>85</output>
85 minutes.
James' total time was 170+10=
<gadget id="calculator">170+10</gadget>
<output>180</output>
180.
So it took him 180-85-36=
<gadget id="calculator">180-85-36</gadget>
<output>59</output>
59 minutes to do the run.

<result>59</result>