A car traveled a total of miles in hours. The car drove on local roads at an average speed of mph and on highways at an average speed of mph. If is the time, in hours, the car traveled on local roads and is the time, in hours, it traveled on highways, which system of equations represents this situation?