A hiker completed a -mile trail in hours. For the first part of the trail, the hiker walked at an average speed of mph. For the second part, the hiker walked at an average speed of mph due to rough terrain. If is the time, in hours, spent on the first part of the trail and is the time, in hours, spent on the second part, which system of equations represents this situation?