Two ferryboats A and B start at the same instant from opposite sides of a river travelling across the water on routes at right angles to the shores. Each travels at a constant speed, but one is faster than the other. They pass at a point 720 metres from the nearest shore. Both boats remain at their shore for 10 minutes before starting back. On the return trips they meet 400 metres from the other shore. How wide is the river?