Yes it is because the value is constantly raising.
Here the graph and what else you need
The first car consumed 21 gallons while the second car consumed 49 gallons. here is the how it's done.
for the first car gallons consumed is 15/50x70= 21 gallons
the second car consumed 35/50x70=49 gallons
(18-7x)+1= -9 Hope this helps ^^
The first interception for this function would be at (1,0) the next would be (4,0)