The average rate of the first part of Yi’s walk on a park loop was 4 miles per hour. She then met up with a friend and the two walked the rest of the way at an average rate of 5 miles per hour. The entire 3-mile walk took Yi 42 minutes (0.7 hour). Which equation can be used to solve for x, the time in hours that Yi spent walking before meeting her friend?