In this question it is given that,
Let x = the number of gallons that Chris bought at the first station and y = the number of gallons Chris bought at the second station.
So we have

Substituting the value of x in the second equation, we will get

So the correct option is the second option .