If there are 12 hats in a box (the hats of each color are the same), of which 3 are red, 3 are white, 6 are yellow, and 8 hats are randomly selected from them, how many different hats are there? Take the method.
假如一个箱子里放有12顶帽子(每种颜色的帽子相同)，其中3顶是红色的，3顶是白色的，6顶是黄色的，从中任取8顶帽子，则有多少种不同的取法．
<gadget id="calculator">2 + 3 + 4 + 4</gadget>
<output>13</output>

<result>13</result>