A car M starts from point A and a car N starts from point B and move towards opposite sides at a constant speed. The cars meet 500 yards from A for the first time. After reaching the opposite points, each of the car returns back without any break and this time, they meet 300 yards from B.

What is the distance between the two points A and B and what is the relation between the speeds of the two boats?