Xiaoming and Xiaohong bought food for going to the park on Children's Day. Xiaoming bought 5 kinds of food, and Xiaohong bought 4 more kinds of food than Xiaoming. Three of the food they bought were the same. How many kinds of food did they buy in total?
六一儿童节小明、小红买去公园游玩时所需的食物，小明买了5种，小红买的比小明多4种，他们俩买的食物中有3种是相同的．他们一共买了多少种食物？
<gadget id="calculator">4 + 5</gadget>
<output>9</output>

<gadget id="calculator">5 - 3</gadget>
<output>2</output>

<gadget id="calculator">9 + 2</gadget>
<output>11</output>

<result>11</result>