### Algebra word problem

In a family there are two cars. The sum of the average miles per gallon obtained by the two cars in a particular week is 60. The first car has consumed 15 gallons during that week, and the second has consumed 35 gallons, for a total of 1400 miles driven by the two cars combined. What was the average gas mileage obtained by each