### Systems of Equations Word Problems

In a family there are two cars. In a given week, the first car gets an average of 40 miles per gallon, and the second car gets 25 miles per gallon. The two cars combined drive a total of 1775 miles in that week, for a total gas consumption of 50 gallons. How many gallons were consumed by each of the two cars that week?