Andy gets a cavity for every 4 candy canes he eats. He gets 2 candy canes from his parents and 3 candy canes each from 4 teachers. Then he uses his allowance to buy 1/7 as many candy canes as he was given. How many cavities does he get from eating all his candy canes?
First find how many candy canes Andy gets from his teachers: 3 canes/teacher * 4 teachers = 
<gadget id="calculator">3*4</gadget>
<output>12</output>
12 canes.
Then add the number of candy canes he gets from his parents: 12 canes + 2 canes = 
<gadget id="calculator">12+2</gadget>
<output>14</output>
14 canes.
Then divide that number by 7 to find the number of canes he buys: 14 canes / 7 = 
<gadget id="calculator">14/7</gadget>
<output>2</output>
2 canes.
Then add the number of candy canes he gets from each source to find the total number: 2 canes + 14 canes = 
<gadget id="calculator">2+14</gadget>
<output>16</output>
16 canes.
Then divide the total number of candy canes by the number of candy canes it takes to get one cavity to find the number of cavities Andy gets: 16 canes / 4 canes/cavity = 
<gadget id="calculator">16/4</gadget>
<output>4</output>
4 cavities.

<result>16</result>