Mr. Zhang drove from point A to point B. He drove 25% of the whole journey in the first hour. After driving another 12 kilometers, he found that there was still 35% of the distance to point B. How far was the distance between A and B?
张老师开车从A地到B地，第一小时行驶了全程的25%，他又行驶了12公里后，发现离B地还有35%的路程，问AB两地的路程有多远？
<gadget id="calculator">25 / 100</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">35 / 100</gadget>
<output>7/20 = around 0.35</output>

<gadget id="calculator">1 - (1/4) - (7/20)</gadget>
<output>2/5 = around 0.4</output>

<gadget id="calculator">12 / (2/5)</gadget>
<output>30</output>

<result>30</result>