There are 120 cards in a box. If 2/5 of the cards are red, exactly 5/9 of the remainder are black, and the rest are green, calculate the number of green cards in the box?
The number of red cards in the box, 2/5 of the total number, is 2/5*120 = 
<gadget id="calculator">2/5*120</gadget>
<output>48</output>
48.
The number of cards that are not red is 120-48 = 
<gadget id="calculator">120-48</gadget>
<output>72</output>
72.
If 5/9 of the remaining cards are black, then there are 5/9*72 = 
<gadget id="calculator">5/9*72</gadget>
<output>40</output>
40 black cards in the box.
If the remaining cards are green, then there are 72-40 = 
<gadget id="calculator">72-40</gadget>
<output>32</output>
32 green cards in the box.

<result>32</result>