Step-by-step explanation:
Let us denote by x the gallons for the first car and y the gallons for the second car.
Now, according to the problem, we have that 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 and during one particular week, the two cars went a combined total of 1500 miles. Then, we get the following equation:
Equation 1:
20x + 30y = 1500
On the other hand, the problem says that there is a total gas consumption of 55 gallons. Then, we obtain the following equation:
Equation 2:
x + y = 55
From this last equation, we obtain the following equation:
Equation 3:
y = 55 - x
Now, replacing this equation in equation 1, we get:
![20x+30(55\text{ -x})=1500](https://img.qammunity.org/2023/formulas/mathematics/college/h84721mqno3mr7lk2fvr2ovkgy5jf1x9nm.png)
Applying the distributive property, get
![20x+1650\text{ -30x}=1500](https://img.qammunity.org/2023/formulas/mathematics/college/k02gv4avivmzfeih8n0dimh2tm6dz2mcjb.png)
this is equivalent to:
![20x\text{ - 30x = 1500 - 1650}](https://img.qammunity.org/2023/formulas/mathematics/college/vyoeqv5ctjupvcoe6cux7dqpns8ya5rcl3.png)
this is equivalent to:
![\text{ - 10 x = -150}](https://img.qammunity.org/2023/formulas/mathematics/college/wgs5ut2h2v9ypba6sgb97oyqmeiiskxx3y.png)
or
![10\text{x = 150}](https://img.qammunity.org/2023/formulas/mathematics/college/o0to5icsmyhy3zs347qy0kb51s1ac65g89.png)
solving for x, we obtain:
![x\text{ =}(150)/(10)=15](https://img.qammunity.org/2023/formulas/mathematics/college/lx6b4n4s5wjfzk01dozteak2nzywref93b.png)
now, replacing this value in equation 3, we get:
![y=55-x\text{ = 55-15 = 40 }](https://img.qammunity.org/2023/formulas/mathematics/college/dnr3lofzgo1lwtdkqx6hv3r7ou562pe5a7.png)
we can conclude that the correct answer is:
Answer:
First car: 15 gallons.
Second car: 40 gallons.