The store buys a batch of basketballs at a price of 48 yuan each, and sells them for 58 yuan. When there are 10 basketballs left, it has made a profit of 540 yuan in addition to the cost. How many basketballs are there in total?
商店以每个48元的价格购进一批篮球，售价为58元，卖到还剩10个时，除成本外，已获利540元．这批篮球一共多少个？
<gadget id="calculator">58 * 10</gadget>
<output>580</output>

<gadget id="calculator">540 + 580</gadget>
<output>1_120</output>

<gadget id="calculator">58 - 48</gadget>
<output>10</output>

<gadget id="calculator">1_120 / 10</gadget>
<output>112</output>

<result>112</result>