The school bought some basketballs. If each basketball is 12 yuan cheaper, or if you buy 13 less, then the money spent will be reduced by 312 yuan. How much did the school actually spend on these basketballs?
学校买了一些篮球，如果每个篮球便宜12元，或者少买13个，那么所花的钱都比原来减少312元．学校买这些篮球实际花了多少元？
<gadget id="calculator">312 / 13</gadget>
<output>24</output>

<gadget id="calculator">312 / 12</gadget>
<output>26</output>

<gadget id="calculator">24 * 26</gadget>
<output>624</output>

<result>624</result>