The school purchased a batch of new books and distributed them to the sixth grade (1/5), and distributed the remaining books to the third, fourth and fifth grades according to the ratio of 3:4:5, and the fifth grade received 40 books. How many copies?
学校购进一批新图书，分给六年级(1/5)后，剩下的按3：4：5的比例分给三、四、五年级，五年级分得40本，这批图书共有多少本？
<gadget id="calculator">3 + 4 + 5</gadget>
<output>12</output>

<gadget id="calculator">5 / 12</gadget>
<output>5/12 = around 0.416667</output>

<gadget id="calculator">40 / (5/12)</gadget>
<output>96</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">96 / (4/5)</gadget>
<output>120</output>

<result>120</result>