After some time, their cars meet at 500 miles away from Peter's house. They keep driving and reach at each other's home. Without stopping by, they turn back and start driving again. This time, they meet 300 miles away from each other's home.
What is the distance between their houses?