Randy has 9 oatmeal cookies, 4 chocolate chip cookies, and 5 sugar cookies. He ate 3 cookies for an early day snack, one of each flavor. He ate 2 oatmeal cookies for lunch. He gives 2 sugar cookies to his friends. Then, he bakes 4 of each flavor for dinner. How many cookies does he have now?
Randy originally has 9+4+5 = 
<gadget id="calculator">9+4+5</gadget>
<output>18</output>
18 cookies in total.
He has 18-3 = 
<gadget id="calculator">18-3</gadget>
<output>15</output>
15 cookies left.
He has 15-2 = 
<gadget id="calculator">15-2</gadget>
<output>13</output>
13 cookies left.
He has 13-2 = 
<gadget id="calculator">13-2</gadget>
<output>11</output>
11 cookies left.
Randy bakes 4*3 = 
<gadget id="calculator">4*3</gadget>
<output>12</output>
12 cookies.
Randy has 11+12 = 
<gadget id="calculator">11+12</gadget>
<output>23</output>
23 cookies.

<result>23</result>