Kayla left a pile of gummy bears in the sun. After several hours 12 melted. This accounted for 40% of the total number. How many gummy bears did she leave in the sun?