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 55. The first car has consumed 35 gallons during that week, and the second has consumed 40 gallons, for a total of 2050 miles driven by the two cars combined. What was the average gas mileage obtained by each of the two cars in that week?