About the same as the previous posting
a = gallons used up by the 20 mpg car
b = gallons used up by the 30 mpg car
we know on that week they both consumed 65 gallons altogether, therefore
a + b = 65.
we also know that they did a combined mileage of 1550. Now, in 1 gallon the 20mpg car does 20(1) miles, in 2 it does 20(2) miles, in 3 gallons it does 20(3) and in "a" it does 20(a) or
20a miles.
likewise, the 30mpg car does 30(b) in b gallons, or
30b miles.
Therefore,
20a + 30b = 1550.

how many gallons is it consumed by the 30mpg car? well b = 65 - a.