John drives to his friend's house 200 miles away.  He drives at a speed of 70 mph.  He had to take a detour that added 10 miles to his trip.  After he gets there he takes a route home that is 240 miles but he goes 80 mph.  How long did the trip take?
The first leg was 200+10=
<gadget id="calculator">200+10</gadget>
<output>210</output>
210 miles.
So he drove 210/70=
<gadget id="calculator">210/70</gadget>
<output>3</output>
3 hours.
The second route took 240/80=
<gadget id="calculator">240/80</gadget>
<output>3</output>
3 hours.
So in total he drove 3+3=
<gadget id="calculator">3+3</gadget>
<output>6</output>
6 hours.

<result>6</result>