Xiao Ming puts some extracurricular books in the bookcase, literature books account for 40%, and the rest are story books. There are 18 story books. How many books does Xiao Ming put in the bookcase?
小明在书柜里放了一些课外书，其中文学书占40%，剩下的是故事书，故事书有18本，小明一共在书柜里放了多少本书？
<gadget id="calculator">40 / 100</gadget>
<output>2/5 = around 0.4</output>

<gadget id="calculator">1 - (2/5)</gadget>
<output>3/5 = around 0.6</output>

<gadget id="calculator">18 / (3/5)</gadget>
<output>30</output>

<result>30</result>