Solution:
Let the car efficiency of first car be x
Let the car efficiency of the second car be y
Given that the first car consumed 20 gallons of gas and the second consumed 40 gallons of gas. The two cars drove a combined total of 1200 miles
This can be represented as
[tex]20x+40y=1200-----(1)[/tex]Given that the sum of their fuel efficiencies was 45 miles per gallon
This can be represented as
[tex]x+y=45----------(11)[/tex]Solve both equations simultaneously
[tex]\begin{gathered} 20x+40y=1200 \\ x+y=45 \\ x=45-y \\ thus,\text{ } \\ 20(45-y)+40y=1200 \\ 900-20y+40y=1200 \\ 900+20y=1200 \\ 20y=1200-900 \\ y=\frac{300}{20} \\ y=15 \\ \end{gathered}[/tex][tex]\begin{gathered} x+y=45 \\ x=45-y \\ x=45-15 \\ x=30 \end{gathered}[/tex]Thus,
First car: 30 miles per gallon
Second car: 15 miles per gallon