Xiaohong walks from home to school at a speed of 50 meters per minute, and will be late for 8 minutes. After walking like this for 2 minutes, he switches to a speed of 60 meters per minute and arrives 5 minutes early. How many meters away is Xiao Ming's home from the school?
小红以每分钟50米的速度从家走到学校，则要迟到8分钟，他这样走了2分钟之后，改用每分钟60米的速度前进，结果早到5分钟．小明家离学校多少米？
<gadget id="calculator">50 * 8</gadget>
<output>400</output>

<gadget id="calculator">60 * 5</gadget>
<output>300</output>

<gadget id="calculator">400 + 300</gadget>
<output>700</output>

<gadget id="calculator">60 - 50</gadget>
<output>10</output>

<gadget id="calculator">700 / 10</gadget>
<output>70</output>

<gadget id="calculator">8 + 70</gadget>
<output>78</output>

<gadget id="calculator">50 * 78</gadget>
<output>3_900</output>

<gadget id="calculator">3_900 + 400</gadget>
<output>4_300</output>

<result>4_300</result>