In a community of 50 families, 15 families own 2 dogs, 20 families own 1 dog, while the remaining families own 2 cats each. How many dogs and cats are there in all?
The 15 families own 15x2=
<gadget id="calculator">15*2</gadget>
<output>30</output>
30 dogs.
The 20 families own 20x1=
<gadget id="calculator">20*1</gadget>
<output>20</output>
20 dogs.
There are 50-15-20=
<gadget id="calculator">50-15-20</gadget>
<output>15</output>
15 cat owners.
The remaining families own 15x2=
<gadget id="calculator">15*2</gadget>
<output>30</output>
30 cats.
There are 30+20+30=
<gadget id="calculator">30+20+30</gadget>
<output>80</output>
80 dogs and cats in the village.

<result>80</result>