Teddy has 7 dogs and 8 cats. Ben has 9 more dogs than Teddy, and Dave has 13 more cats and 5 less dogs than Teddy. How many pets do all of them have combined?
Teddy has 7+8 = 
<gadget id="calculator">7+8</gadget>
<output>15</output>
15 pets in total.
Ben has 9+7 = 
<gadget id="calculator">9+7</gadget>
<output>16</output>
16 dogs, which means he has 16 pets in total.
Dave has 13+8 = 
<gadget id="calculator">13+8</gadget>
<output>21</output>
21 cats.
Dave has 7-5 = 
<gadget id="calculator">7-5</gadget>
<output>2</output>
2 dogs.
Dave has 21+2 = 
<gadget id="calculator">21+2</gadget>
<output>23</output>
23 pets in total.
Combined, they have 15+16+23 = 
<gadget id="calculator">15+16+23</gadget>
<output>54</output>
54 pets in total.

<result>54</result>