The school buys back a batch of new books and distributes them to the sixth grade (1/5), and distributes the rest to the third, fourth, and fifth grades at a ratio of 3:4:5, of which the fifth grade gets 40 books. How many new books are there in total?
学校购回一批新书，分给六年级(1/5)后，剩下的按3：4：5分给三、四、五年级，其中五年级分得40本．这批新书共有多少本？
<gadget id="calculator">40 / 5</gadget>
<output>8</output>

<gadget id="calculator">3 + 4 + 5</gadget>
<output>12</output>

<gadget id="calculator">1 / 5</gadget>
<output>1/5 = around 0.2</output>

<gadget id="calculator">1 - (1/5)</gadget>
<output>4/5 = around 0.8</output>

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

<gadget id="calculator">8 * 15</gadget>
<output>120</output>

<result>120</result>