Final answer:
The first car used 30 gallons of gas and the second car used 25 gallons of gas.
Step-by-step explanation:
To find out how many gallons of gas each car used, we can use a system of equations. Let's call the number of gallons used by the first car as 'x' and the number of gallons used by the second car as 'y'.
From the given information, we can set up two equations:
x + y = 55 (since together they consumed 55 gallons of gas)
30x + 40y = 1900 (since the total distance driven was 1900 miles)
Now, we can solve these equations simultaneously to find the values of 'x' and 'y'.
Multiplying the first equation by 30, we get:
30x + 30y = 1650
Subtracting this equation from the second equation, we get:
40y - 30y = 250
Simplifying, we have:
10y = 250
Dividing both sides by 10, we find:
y = 25
Substituting this value back into the first equation, we can find:
x + 25 = 55
x = 30
Therefore, the first car used 30 gallons of gas and the second car used 25 gallons of gas.