James has 20 pairs of red socks and half as many black socks.  He has twice as many white socks as red and black combined.  How many total socks does he have combined?
He has 20/2=
<gadget id="calculator">20/2</gadget>
<output>10</output>
10 black socks.
So he has 20+10=
<gadget id="calculator">20+10</gadget>
<output>30</output>
30 black and red socks.
So he has 30*2=
<gadget id="calculator">30*2</gadget>
<output>60</output>
60 white socks.
So he has 60+30=
<gadget id="calculator">60+30</gadget>
<output>90</output>
90 total socks.

<result>90</result>