From home to school, Xiao Ming walked at a speed of 50 meters per minute for 2 minutes at the beginning. At this time, he thought: If he continues to walk at this speed according to his past school experience, he will definitely be 8 minutes late. So he immediately speeded up and walked 10 meters more per minute. As a result, Xiao Ming arrived 5 minutes earlier. How many meters is the distance from Xiao Ming's house to the school?
小明从家到学校上课，开始时以每分钟50米的速度走了2分钟，这时他想：若根据以往上学的经验，再按这个速度走下去，肯定要迟到8分钟．于是他立即加快速度，每分钟多走10米，结果小明早到了5分钟．小明家到学校的路程是多少米．
<gadget id="calculator">50 * 2</gadget>
<output>100</output>

<gadget id="calculator">50 * 8</gadget>
<output>400</output>

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

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

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

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

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

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

<gadget id="calculator">100 + 3_900</gadget>
<output>4_000</output>

<result>4_000</result>