Farmer Brown has 60 animals on his farm, all either chickens or cows. He has twice as many chickens as cows. How many legs do the animals have, all together?
There are 60*(2/3)=
<gadget id="calculator">60*(2/3)</gadget>
<output>40</output>
40 chickens.
There are 60-40=
<gadget id="calculator">60-40</gadget>
<output>20</output>
20 cows.
The chickens have 40*2=
<gadget id="calculator">40*2</gadget>
<output>80</output>
80 legs.
The cows have 20*4=
<gadget id="calculator">20*4</gadget>
<output>80</output>
80 legs.
They have 80+80=
<gadget id="calculator">80+80</gadget>
<output>160</output>
160 legs altogether.

<result>160</result>