Xiao Ming reads a book, the first time he reads (2/5) of the total, and the second time he reads (1/3) of the total (1/3) less than 12 bags, which means there are 24 pages left in the book. How many pages did you read in total?
小明读一本书，第一次读了总数的(2/5)，第二次读了总数的(1/3)少12袋，这是书还剩24页．两次共读了多少页？
<gadget id="calculator">24 - 12</gadget>
<output>12</output>

<gadget id="calculator">2 / 5</gadget>
<output>2/5 = around 0.4</output>

<gadget id="calculator">1 / 3</gadget>
<output>1/3 = around 0.333333</output>

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

<gadget id="calculator">12 / (4/15)</gadget>
<output>45</output>

<gadget id="calculator">45 - 24</gadget>
<output>21</output>

<result>21</result>