A tree had 1000 leaves before the onset of the dry season, when it sheds all its leaves. In the first week of the dry season, the tree shed 2/5 of the leaves. In the second week, it shed 40% of the remaining leaves.  In the third week, the tree shed 3/4 times as many leaves as it shed on the second week. Calculate the number of leaves the tree hadn't shed by the third week.
In the first week, the tree shed 2/5*1000 = 
<gadget id="calculator">2/5*1000</gadget>
<output>400</output>
400 leaves.
The number of leaves remaining on the tree at the end of the first week is 1000-400 = 
<gadget id="calculator">1000-400</gadget>
<output>600</output>
600.
In the second week, the tree shed 40/100*600 = 
<gadget id="calculator">40/100*600</gadget>
<output>240</output>
240 leaves.
The number of leaves remaining on the tree is 600-240 = 
<gadget id="calculator">600-240</gadget>
<output>360</output>
360.
The third week the tree shed 3/4 of its leaves, a total of 3/4*360 = 
<gadget id="calculator">3/4*360</gadget>
<output>270</output>
270 leaves.
The number of leaves remaining on the tree is 360-270 = 
<gadget id="calculator">360-270</gadget>
<output>90</output>
90 leaves.

<result>90</result>