Xinxin store recently purchased a batch of toys at a cost of 8 yuan per piece, and the price is 12.5 yuan. When there are 60 pieces left, the profit has been 870 yuan. How many toys are there in total?
新新商店最近以每件8元的成本购进一批玩具，售价为12.5元．当卖到还剩60件时，已经获利870元．这批玩具一共有多少件？
<gadget id="calculator">60 * 12.5</gadget>
<output>750</output>

<gadget id="calculator">750 + 870</gadget>
<output>1_620</output>

<gadget id="calculator">12.5 - 8</gadget>
<output>4.5</output>

<gadget id="calculator">1_620 / 4.5</gadget>
<output>360</output>

<result>360</result>