117. Two Ferries. Two ferries travel between two opposite banks of a river at constant speeds. Upon reaching a bank, each immediately starts moving in the opposite direction. The ferries departed from opposite banks simultaneously, met for the first time 700 meters from one of the banks, continued to their respective banks, then turned around and met again 400 meters from the other bank. Determine the width of the river in your mind.