Ariana heard the news that a new grocery store had opened up in their town, so she decided to buy some flowers for her house. She bought a bunch of 40 flowers, 2/5 of which were roses, 10 were tulips, and the rest were carnations. How many carnations did she buy?
The number of roses in the bunch is 2/5 * 40 flowers = 
<gadget id="calculator">2/5*40</gadget>
<output>16</output>
16 flowers.
The total number of roses and tulips is 16 flowers + 10 flowers = 
<gadget id="calculator">16+10</gadget>
<output>26</output>
26 flowers.
There were 40 flowers - 26 flowers = 
<gadget id="calculator">40-26</gadget>
<output>14</output>
14 carnations.

<result>14</result>