Cersei bought 50 cotton candies. She gave her brother and sister 5 cotton candies each, then gave the remaining one-fourth of them to her cousin. If she ate 12 cotton candies, how many cotton candies are left?
Cersei gave a total of 5 x 2 = 
<gadget id="calculator">5*2</gadget>
<output>10</output>
10 cotton candies to her brother and sister.
So, the total cotton candies left were 50 - 10 = 
<gadget id="calculator">50-10</gadget>
<output>40</output>
40.
And she gave 1/4 x 40 = 
<gadget id="calculator">1/4*40</gadget>
<output>10</output>
10 cotton candies to her cousin.
So, the total number of cotton candies left was 40 - 10 = 
<gadget id="calculator">40-10</gadget>
<output>30</output>
30.
Therefore, the total number of cotton candies left after she ate 12 of them is 30 - 12 = 
<gadget id="calculator">30-12</gadget>
<output>18</output>
18.

<result>18</result>