Mariel is a dog walker.  While walking her pack of dogs, she gets tangled up in the leashes of another dog walker and their 3 dogs.  There are 36 legs tangled up in leashes.  How many dogs is Mariel walking?
There are 2 dog walkers and they each have 2 legs so that's 2*2 = 
<gadget id="calculator">2*2</gadget>
<output>4</output>
4 legs.
The other dog walker is walking 3 dogs that each have 4 legs so that's 3*4 = 
<gadget id="calculator">3*4</gadget>
<output>12</output>
12 legs.
The dog walkers have 4 legs and the other dogs have 12 legs for a total of 4+12 = 
<gadget id="calculator">4+12</gadget>
<output>16</output>
16 legs.
There are 36 legs total and 16 belong to the dog walkers and 3 dogs so that leaves 36-16 = 
<gadget id="calculator">36-16</gadget>
<output>20</output>
20 legs.
Dogs have 4 legs and there are 20 legs so Mariel is walking 20/4 = 5 dogs.

<result>5</result>