Mary drove to the mountains last weekend. There was heavy traffic on the way there, and the trip took 7 hours. When Mary drove home, there was no traffic and the trip only took 4 hours. If her average rate was 27 miles per hour faster on the trip home, how far away does Mary live from the mountains? Do not do any rounding.