Nancy is cleaning out her old woodshed. She saw 90 spiders, 1/3rd as many millipedes as spiders, and a number of stink bugs equal to twice the number of millipedes minus 12. How many bugs did she count total?
First find the number of millipedes: 90 spiders / 3 spiders/millipede = 
<gadget id="calculator">90/3</gadget>
<output>30</output>
30 millipedes.
Then multiply the number of millipedes by 2: 30 bugs * 2 = 
<gadget id="calculator">30*2</gadget>
<output>60</output>
60 bugs.
Then subtract 12 to find the number of stink bugs: 60 bugs - 12 bugs = 
<gadget id="calculator">60-12</gadget>
<output>48</output>
48 bugs.
Then add the number of each kind of bug to find the total: 48 bugs + 30 bugs + 90 bugs = 
<gadget id="calculator">48+30+90</gadget>
<output>168</output>
168 bugs.

<result>168</result>