The number of roses in the bunch is 2/5 * 40 flowers = <<2/5*40=16>>16 flowers

The total number of roses and tulips is 16 flowers + 10 flowers = <<16+10=26>>26 flowers

There were 40 flowers - 26 flowers = <<40-26=14>>14 carnations

# Answer

14
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
14
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?
train