There are 18 colored balls of the same size in a bag, including 3 red balls, 5 yellow balls, and 10 green balls. Now it is necessary to take out several balls from the bag at one time, so that at least 5 of these balls are of the same color, then what is the minimum number of balls taken out of the bag at one time?
袋子里有18个大小相同的彩色球，其中红球有3个，黄球有5个，绿球有10个．现在要一次从袋中取出若干个球，使得这若干个球中至少有5个球是同色的，那么从袋中一次取出球的个数至少是多少个
<gadget id="calculator">3 + 4 + 4 + 1</gadget>
<output>12</output>

<result>12</result>