A family has two cars. The first car has a fuel efficiency of 20
miles per gallon of gas and the second has a fuel efficiency of 30
miles per gallon of gas. During one particular week, the two cars
went a combined total of 1050 miles, for a total gas consumption of
45 gallons. How many gallons were consumed by each of the two cars
that week?