Xiaodong and Xiaoqing started from places A and B at the same time and walked towards each other. They met for the first time at a distance of 40 kilometers from place A. After meeting, the two continue to move forward at the same speed, and immediately return along the same road when they reach the starting point of the other party. On the way, the two meet for the second time at a distance of 15 kilometers from place B. How many kilometers are the distance between A and B?
小东，小青两人同时从甲乙两地出发相向而行，两人在离甲地40千米处第一次相遇．相遇后两人仍以原速继续前进，并且在各自到达对方出发点都立即沿原路返回，途中两人在距离乙地15千米处第二次相遇，求甲乙两地相距多少千米？
<gadget id="calculator">40 * 3</gadget>
<output>120</output>

<gadget id="calculator">120 - 15</gadget>
<output>105</output>

<result>105</result>