Two people, A and B, walked towards each other from the east and west villages at the same time. When they met for the first time, A was 500 meters away from the west village. After they met, they continued to move forward. For the second encounter, find the distance between the east and west villages?
甲乙两人从东西两村同时相对走来，第一次相遇时，甲离西村500米，两人相遇后继续前进，当到达两村后又转身相向而行，在距东村400米处第二次相遇，求东西两村之间的距离？
<gadget id="calculator">500 * 3</gadget>
<output>1_500</output>

<gadget id="calculator">1_500 - 400</gadget>
<output>1_100</output>

<result>1_100</result>