Jen rode her bicycle to visit her friend who lives 6 miles away. On her way there, her average speed was 8 miles per hour faster than on her way home. If Jen spent a total of 2 hours bicycling, find the two rates.