Janet had 22 green pens and 10 yellow pens. Then she bought 6 bags of blue pens and 2 bags of red pens. There were 9 pens in each bag of blue and 6 pens in each bag of red. How many pens does Janet have now?
Janet previously had 22 + 10 = 
<gadget id="calculator">22+10</gadget>
<output>32</output>
32 pens.
The number of blue pens is 6 * 9 = 
<gadget id="calculator">6*9</gadget>
<output>54</output>
54.
The number of red pens is 2 * 6 = 
<gadget id="calculator">2*6</gadget>
<output>12</output>
12.
Janet has 32 + 54 + 12 = 
<gadget id="calculator">32+54+12</gadget>
<output>98</output>
98 pens now.

<result>98</result>