Gemma recently rode her bicycle to visit her friend who lives 6 miles away. On her way there, her average speed was 16 miles per hour faster than on her way home. If Gemma spent a total of 1 hour bicycle, find the two rates.