The school originally had 36 footballs and basketballs, of which the ratio of the number of footballs to basketballs was 7:2. After buying some footballs, footballs accounted for 80% of the total number of the two kinds of balls. Now how many footballs and basketballs are there in the school? indivual?
学校原有足球和篮球共36个，其中足球与篮球个数的比是7：2，又买进一些足球后，足球占现有两种球总数的80%，现在学校一共有足球和篮球多少个？
<gadget id="calculator">2 + 7</gadget>
<output>9</output>

<gadget id="calculator">2 / 9</gadget>
<output>2/9 = around 0.222222</output>

<gadget id="calculator">80 / 100</gadget>
<output>4/5 = around 0.8</output>

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

<gadget id="calculator">(2/9) / (1/5)</gadget>
<output>10/9 = around 1.111111</output>

<gadget id="calculator">36 * (10/9)</gadget>
<output>40</output>

<result>40</result>