Respuesta :

Assume that the first car used x gallons, and the second car used y gallons this week

Since the total number of gallons is 60, then

[tex]x+y=60\rightarrow(1)[/tex]

Since the rate of the first car is 40 miles per gallon

Since the rate of the second car is 20 miles per gallon

Then the first car made (40)(x) miles, and the second car made (20)(y) miles

Since the total distance they made is 1900 miles, then

[tex]40x+20y=1900\rightarrow(2)[/tex]

Now, we have a system of equations to solve it.

Multiply equation (1) by -20 to make the coefficients of y equal and different in signs to eliminate it

[tex]\begin{gathered} (-20)(x)+(-20)(y)=(-20)(60) \\ -20x-20y=-1200\rightarrow(3) \end{gathered}[/tex]

Add equations (2) and (3)

[tex]\begin{gathered} (40x-20x)+(20y-20y)=(1900-1200) \\ 20x+0=700 \\ 20x=700 \end{gathered}[/tex]

Divide both sides by 20

[tex]\begin{gathered} \frac{20x}{20}=\frac{700}{20} \\ x=35 \end{gathered}[/tex]

Substitute the value of x in equation (1) to find y

[tex]35+y=60[/tex]

Subtract 35 from both sides

[tex]\begin{gathered} 35-35+y=60-35 \\ y=25 \end{gathered}[/tex]

The first car used 35 gallons

The second car used 25 gallons