Jan has three times the number of pets as Marcia. Marcia has two more pets than Cindy. If Cindy has four pets, how many total pets do the three have?
Marcia has 4 + 2 = 
<gadget id="calculator">4+2</gadget>
<output>6</output>
6 pets.
Jan has 3 * 6 = 
<gadget id="calculator">3*6</gadget>
<output>18</output>
18 pets.
In total, the three have 4 + 6 + 18 = 
<gadget id="calculator">4+6+18</gadget>
<output>28</output>
28 pets.

<result>28</result>